package/mesa3d: always enable openGL
PATCH 1/1 package/mesa3d: always enable openGL
From: "Yann E. MORIN" <[email protected]>
Currently, we only pass --enable-opengl is at least one DRI driver is enabled, since full OpenGL is only possible with a DRI driver (and the X.Org stack). Otherwise, we pass --disable-opengl on the assumption that OpenGL is not possible.
But mesa3d's ./configure is a bit weird: enabling OpenGL-ES and diabling full OpenGL is an error (see autobuild failure below).
It turns out that, if there is no DRI driver enabled, but --enable-opengl is passed, ./configure will behave properly wrt OpenGL-ES, and will not build the full OpenGL libgl.
Thanks to Paul for explaining this.
Fixes:
http://autobuild.buildroot.net/results/61c/61c1c566dc0e829cb663ca30b1fd6cf9cc6cd931/
--- package/mesa3d/mesa3d.mk | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
package/mesa3d/mesa3d.mk +3 -6
@@ -80,13 +80,10 @@ endif # APIs -# Full OpenGL is provided by DRI drivers with X.Org; DRI drivers are only -# enabled when X.Org is enabled anyway, so no need to check for X.Org here. -ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y) +# Always enable OpenGL: +# - it is needed for GLES (mesa3d's ./configure is a bit weird) +# - but if no DRI driver is enabled, then libgl is not built MESA3D_CONF_OPT += --enable-opengl -else -MESA3D_CONF_OPT += --disable-opengl -endif ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y) # egl depends on gbm, gbm depends on udev
Signature · 1 line
1.8.3.2
Thomas Petazzoni
AppliedPATCH 1/1 package/mesa3d: always enable openGL
Dear Yann E. MORIN,
Quoted 14 lines · Yann E. MORIN
From: "Yann E. MORIN" <[email protected]>
Currently, we only pass --enable-opengl is at least one DRI driver is enabled, since full OpenGL is only possible with a DRI driver (and the X.Org stack). Otherwise, we pass --disable-opengl on the assumption that OpenGL is not possible.
But mesa3d's ./configure is a bit weird: enabling OpenGL-ES and diabling full OpenGL is an error (see autobuild failure below).
It turns out that, if there is no DRI driver enabled, but --enable-opengl is passed, ./configure will behave properly wrt OpenGL-ES, and will not build the full OpenGL libgl.
Quoted 7 lines
Thanks to Paul for explaining this.
Fixes:
http://autobuild.buildroot.net/results/61c/61c1c566dc0e829cb663ca30b1fd6cf9cc6cd931/Signed-off-by "Yann E. MORIN" <[email protected]>Cc Paul Cercueil <[email protected]>
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com