summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-08-20 20:10:41 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-22 18:30:03 +0100
commit0c3a3a5da24874faa791f581eafb35f2fcc2214a (patch)
treed1e2eb73e90a66d36ee61e2d1449a7150d1a1d0d
parent851163a7c672b5fb051fc0e7938ebd585bb33bf0 (diff)
downloadpoky-0c3a3a5da24874faa791f581eafb35f2fcc2214a.tar.gz
mesa: enable additional drivers for gallium-llvm x86/x86-64
The additional Gallium drivers are needed for open source ATI Radeon and NVIDIA graphics drivers. The radeonsi and r600 drivers require LLVM 3.3 built with r600 PACKAGECONFIG so they must be explicitly enabled by adding r600 to the mesa PACKAGECONFIG. (From OE-Core rev: 1d08cef09cc7cbf682e8b372987fe4456961272b) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 447e18636c..e985d675c0 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -50,6 +50,10 @@ PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disa
50PACKAGECONFIG[openvg] = "--enable-openvg, --disable-openvg" 50PACKAGECONFIG[openvg] = "--enable-openvg, --disable-openvg"
51 51
52GALLIUMDRIVERS = "swrast" 52GALLIUMDRIVERS = "swrast"
53GALLIUMDRIVERS_LLVM33 = "${@base_contains('PACKAGECONFIG', 'r600', 'radeonsi,r600', '', d)}"
54GALLIUMDRIVERS_LLVM = "r300,svga,nouveau${@base_version_less_or_equal('MESA_LLVM_RELEASE', '3.2', '', ',${GALLIUMDRIVERS_LLVM33}', d)}"
55GALLIUMDRIVERS_append_x86 = "${@base_contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}"
56GALLIUMDRIVERS_append_x86-64 = "${@base_contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}"
53# keep --with-gallium-drivers separate, because when only one of gallium versions is enabled, other 2 were adding --without-gallium-drivers 57# keep --with-gallium-drivers separate, because when only one of gallium versions is enabled, other 2 were adding --without-gallium-drivers
54PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --without-gallium-drivers" 58PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --without-gallium-drivers"
55PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl" 59PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl"