Skip to contentSkip to conversation

package/mesa3d: vc4 backend is an EGL provider

PATCH New Yann E. MORIN 2 participants 2 messages Aug 13, 2017 – Aug 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/mesa3d: vc4 backend is an EGL provider

The VC4 GPU does not support full GL, it only provides EGL.

Currently, it is possible to build the VC4 backend without ELG support, but that does not make sense in the slighest.

So, forcibly enable EGL with VC4, like is done for etnaviv and virgl.

---
Note:
Currently, as soon as mesa3d and Xorg are both enabled, then we consider that full GL is available. However, that is definitely not the case with the VC4 backend, obviously, as the hardware is not capable of that at all. Fixing this situation is a bigger endeavour, for anotehr patch(set).

---
Changes v1 -> v2:
- enhgance the commit log to explain why we forcibly enable EGL.

---
 package/mesa3d/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/mesa3d/Config.in +1 -0
index ad41b1cd2a..13c118ee68 100644
@@ -102,6 +102,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
 	select BR2_PACKAGE_LIBDRM_VC4
 	select BR2_PACKAGE_MESA3D_NEEDS_XA
+	select BR2_PACKAGE_MESA3D_OPENGL_EGL
 	help
 	  Driver for Broadcom VC4 (rpi2/3) GPUs.
 	  It requires a vanilla 4.5+ kernel with drm vc4 (open) support.
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 package/mesa3d: vc4 backend is an EGL provider

Hello,

Quoted 12 lines · Yann E. MORIN

The VC4 GPU does not support full GL, it only provides EGL.

Currently, it is possible to build the VC4 backend without ELG support, but that does not make sense in the slighest.

So, forcibly enable EGL with VC4, like is done for etnaviv and virgl.

Quoted 6 lines

---
Note:
Currently, as soon as mesa3d and Xorg are both enabled, then we consider that full GL is available. However, that is definitely not the case with the VC4 backend, obviously, as the hardware is not capable of that at all. Fixing this situation is a bigger endeavour, for anotehr patch(set).

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com