summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorAndrey Zhizhikin <andrey.z@gmail.com>2019-08-23 09:31:14 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2019-08-23 09:21:10 -0300
commit9a2210d9ec707531436dc4b56ce655c0bf50a8a8 (patch)
tree37b9922fa93e7313a329288fc696dd79180ff12c /recipes-graphics
parentc1b7cfa9931ebd6373a9a24145a6eb34381895a4 (diff)
downloadmeta-freescale-9a2210d9ec707531436dc4b56ce655c0bf50a8a8.tar.gz
mesa: switch mesa to swrast renderer for mx8mm machine, resolve build issue
After mesa update to 19.1.0, the OSMesa is not anymore explicitly set to 'classic' rather than defaults to 'none'. If the DRI driver is included in the build and neither gl nor 'classic' osmesa is used - this causes the build to fail. This commit disables the gallium for mx8mm, sets the dri drivers to swrast and explicitly defines the 'classic' osmesa to be built. gallium is disabled since current support state of i.MX8M Mini GPU in gallium is unknown. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/mesa/mesa_%.bbappend13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
index 9f183db9..629603b3 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -19,6 +19,19 @@ PACKAGECONFIG_append_use-mainline-bsp = " gallium"
19GALLIUMDRIVERS_append_use-mainline-bsp_armv7a = ",etnaviv,kmsro,vc4" 19GALLIUMDRIVERS_append_use-mainline-bsp_armv7a = ",etnaviv,kmsro,vc4"
20GALLIUMDRIVERS_append_use-mainline-bsp_armv7ve = ",etnaviv,kmsro,vc4" 20GALLIUMDRIVERS_append_use-mainline-bsp_armv7ve = ",etnaviv,kmsro,vc4"
21 21
22# Define the osmesa block in PACKAGECONFIG for target, this block is
23# not defined in the master recipe, effectively causing the osmesa
24# feature to be disabled and -Dosmesa=none set.
25PACKAGECONFIG_append_mx8mm = " osmesa"
26
27# Solve 'Problem encountered: OSMesa classic requires dri (classic) swrast.'
28# by defining the dri swrast for mx8mm machine
29DRIDRIVERS_append_mx8mm = "swrast"
30
31# Solve 'ERROR: Problem encountered: Only one swrast provider can be built'
32# by excluding gallium support, dri is used together with 'classic' mesa backend.
33PACKAGECONFIG_remove_mx8mm = "gallium"
34
22BACKEND = \ 35BACKEND = \
23 "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ 36 "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \
24 bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ 37 bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \