Skip to content

Commit

Permalink
mesa: Limit OSMesa to DRM and remove swrast
Browse files Browse the repository at this point in the history
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 <GL/glut.h>
|       |            ^~~~~~~~~~~
| 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 <tom.hochstein@nxp.com>
  • Loading branch information
thochstein authored and otavio committed Jan 26, 2021
1 parent c19ab3e commit 47394d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions recipes-graphics/mesa/mesa_%.bbappend
Expand Up @@ -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', \
Expand Down

0 comments on commit 47394d0

Please sign in to comment.