diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2017-08-11 11:20:45 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-16 00:03:14 +0100 |
commit | 54cdf84d42d30f0656d3fd538a739237c715d257 (patch) | |
tree | a624deff1352ce5ecb61804557a85d979f4cd4e1 /meta/recipes-graphics/mesa/mesa.inc | |
parent | a3ae69755be0ca825ea24448a6f4c54a765d5b3c (diff) | |
download | poky-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/mesa.inc')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 5 |
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 |
54 | PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=intel, --without-vulkan-drivers" | 54 | VULKAN_DRIVERS = "" |
55 | VULKAN_DRIVERS_append_x86 = ",intel" | ||
56 | VULKAN_DRIVERS_append_x86-64 = ",intel" | ||
57 | PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=${VULKAN_DRIVERS}, --without-vulkan-drivers" | ||
55 | 58 | ||
56 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" | 59 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" |
57 | 60 | ||