summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
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:03:14 +0100
commit54cdf84d42d30f0656d3fd538a739237c715d257 (patch)
treea624deff1352ce5ecb61804557a85d979f4cd4e1 /meta/recipes-graphics/mesa
parenta3ae69755be0ca825ea24448a6f4c54a765d5b3c (diff)
downloadpoky-54cdf84d42d30f0656d3fd538a739237c715d257.tar.gz
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. (From OE-Core rev: 8e50f002823772a989f0f39b0ecb8a84517c94f5) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-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
51 51
52# Vulkan drivers need dri3 enabled 52# Vulkan drivers need dri3 enabled
53# radeon could be enabled as well but requires gallium-llvm with llvm >= 3.9 53# radeon could be enabled as well but requires gallium-llvm with llvm >= 3.9
54PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=intel, --without-vulkan-drivers" 54VULKAN_DRIVERS = ""
55VULKAN_DRIVERS_append_x86 = ",intel"
56VULKAN_DRIVERS_append_x86-64 = ",intel"
57PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=${VULKAN_DRIVERS}, --without-vulkan-drivers"
55 58
56PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" 59PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2"
57 60