summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2017-08-11 11:20:45 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-16 00:01:42 +0100
commit8e50f002823772a989f0f39b0ecb8a84517c94f5 (patch)
tree8a28758e5c9743e9072794313d0a7e8c37505c8d /meta/recipes-graphics
parent4af13a4855c74cea9cf6c168fd73165d7094bf93 (diff)
downloadopenembedded-core-contrib-8e50f002823772a989f0f39b0ecb8a84517c94f5.tar.gz
openembedded-core-contrib-8e50f002823772a989f0f39b0ecb8a84517c94f5.tar.bz2
openembedded-core-contrib-8e50f002823772a989f0f39b0ecb8a84517c94f5.zip
mesa: Fix build with vulkan on non-x86
The intel vulkan driver requires libdrm-intel: Only enable it when building for x86 or x86-64 similar to DRI drivers. Building on non-x86* with vulkan leads to "--with-vulkan-drivers= ": this is interpreted correctly by the build system. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 45361c7790..3bb3cf401f 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -51,7 +51,10 @@ PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, dri3proto presentproto lib
# Vulkan drivers need dri3 enabled
# radeon could be enabled as well but requires gallium-llvm with llvm >= 3.9
-PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=intel, --without-vulkan-drivers"
+VULKAN_DRIVERS = ""
+VULKAN_DRIVERS_append_x86 = ",intel"
+VULKAN_DRIVERS_append_x86-64 = ",intel"
+PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=${VULKAN_DRIVERS}, --without-vulkan-drivers"
PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2"