]> code.ossystems Code Review - meta-freescale.git/commit
mesa: Limit OSMesa to DRM and remove swrast
authorTom Hochstein <tom.hochstein@nxp.com>
Fri, 22 Jan 2021 22:25:50 +0000 (16:25 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 3 Feb 2021 10:57:42 +0000 (07:57 -0300)
commit9ff64ce89a6ebe6dbf9fb3ccd8e2cddb41e7f300
tree191be5b79b0bf3e61f969ff589833481566e8e86
parentb03ccfef7dd961c2986031e5a88f9dd2cb309f2f
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 <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>
(cherry picked from commit 47394d05017483e7fd0cba5b927c76198bdfa062)
recipes-graphics/mesa/mesa_%.bbappend