From 47394d05017483e7fd0cba5b927c76198bdfa062 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Fri, 22 Jan 2021 16:25:50 -0600 Subject: mesa: Limit OSMesa to DRM and remove swrast OSMesa was originally added for i.MX 8 only. This limitation was recently dropped accidentally. Additionally, the 8DualXLite has no GPU and fails to build: ``` | In file included from ../../../mesa-demos-8.4.0/src/osdemos/osdemo32.c:14: | ../../../mesa-demos-8.4.0/src/util/glut_wrap.h:9:12: fatal error: GL/glut.h: No such file or directory | 9 | # include | | ^~~~~~~~~~~ | compilation terminated. ``` Fix the OSMesa configuration by limiting it to parts with DRM. Also, adding swrast prevents the use of hardware acceleration. Drop swrast. Signed-off-by: Tom Hochstein --- recipes-graphics/mesa/mesa_%.bbappend | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'recipes-graphics/mesa') diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index 6b9b456c..3a087425 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend @@ -17,10 +17,9 @@ python () { # Enable Etnaviv and Freedreno support PACKAGECONFIG_append_use-mainline-bsp = " gallium etnaviv kmsro freedreno" -# Enable OSMesa which also requires dri (classic) swrast -PACKAGECONFIG_remove_use-nxp-bsp = "gallium" -PACKAGECONFIG_append_use-nxp-bsp = " osmesa" -DRIDRIVERS_use-nxp-bsp = "swrast" +# For NXP BSP, enable OSMesa for parts with DRM +PACKAGECONFIG_remove_use-nxp-bsp_imxdrm = "gallium" +PACKAGECONFIG_append_use-nxp-bsp_imxdrm = " osmesa" BACKEND = \ "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ -- cgit v1.2.3-54-g00ecf