From: Tom Hochstein Date: Fri, 22 Jan 2021 22:25:50 +0000 (-0600) Subject: mesa: Limit OSMesa to DRM and remove swrast X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=47394d05017483e7fd0cba5b927c76198bdfa062;p=meta-freescale.git 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 --- 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', \