* [Buildroot] [PATCH] package/mesa3d: always enable openGL
@ 2014-04-19 22:01 Yann E. MORIN
2014-04-19 22:19 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Yann E. MORIN @ 2014-04-19 22:01 UTC (permalink / raw)
To: buildroot
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
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/
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Paul Cercueil <paul@crapouillou.net>
---
package/mesa3d/mesa3d.mk | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index db166f8..a09e4c6 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -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
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* [Buildroot] [PATCH] package/mesa3d: always enable openGL
2014-04-19 22:01 [Buildroot] [PATCH] package/mesa3d: always enable openGL Yann E. MORIN
@ 2014-04-19 22:19 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-04-19 22:19 UTC (permalink / raw)
To: buildroot
Dear Yann E. MORIN,
On Sun, 20 Apr 2014 00:01:43 +0200, Yann E. MORIN wrote:
> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
>
> 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/
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Paul Cercueil <paul@crapouillou.net>
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-19 22:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-19 22:01 [Buildroot] [PATCH] package/mesa3d: always enable openGL Yann E. MORIN
2014-04-19 22:19 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox