From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=E9r=F4me?= Pouiller Date: Fri, 17 Feb 2017 18:06:30 +0100 Subject: [Buildroot] [PATCH] package/opengl: ensure consistency between the various providers In-Reply-To: <20170217110436.0366d6f8@free-electrons.com> References: <1487106796-15403-1-git-send-email-yann.morin.1998@free.fr> <20684119.X7ZmMtA3r5@sagittae> <20170217110436.0366d6f8@free-electrons.com> Message-ID: <1840733.CQJu1ZPUIS@sagittae> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Friday 17 February 2017 11:04:36 CET Thomas Petazzoni wrote: > Hello, > > On Fri, 17 Feb 2017 09:34:38 +0100, J?r?me Pouiller wrote: > > > On Thursday 16 February 2017 18:46:10 CET Arnout Vandecappelle wrote: > > > > > > On 14-02-17 22:13, Yann E. MORIN wrote: > > > > Some GL providers will provide libegl and libgles, but not libgl, while > > > > other will provide libgl but not libegl not libgles. This can be the > > > > case with: > > > > - mesa3d -> libgl > > > > - rpi-userland -> libegl and libgles > > > > Unfortunately, as far as I remember, this kind of configuration is > > necessary to build xdriver_xf86-video-imx-viv. Mesa is necessary to > > build GLX support but, EGL/GLes have to be provided by imx-gpu-viv. > > Nope, it's not actually needed. Even with xdriver_xf86-video-imx-viv, > the OpenGL provider is imx-gpu-viv, as it's ultimately the one that > provides libGL.so. Yes, replace "necessary" by "currently used" in my sentence. > However, it is true that imx-gpu-viv is a special case as it provides a > libGL.so that itself uses libraries provided by Mesa. > > So the hack I've done so far is: > > - select BR2_PACKAGE_HAS_LIBGL if BR2_PACKAGE_XORG7 > + select BR2_PACKAGE_HAS_LIBGL if BR2_PACKAGE_XORG7 && !BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11 > > and: > > - default "mesa3d" if BR2_PACKAGE_XORG7 > + default "mesa3d" if BR2_PACKAGE_XORG7 && !BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11 > > This is a quick hack, but it allows mesa3d to *NOT* be seen as an > OpenGL provider if imx-gpu-viv X11 support is enabled. > > So I still think the rule should be: we support only one OpenGL > provider. And the rest should be solved by exposing mesa3d as an OpenGL > provider or not depending on Config.in options. I agree. Give me a few days to prepare a patch that do that. -- J?r?me Pouiller, Sysmic Embedded Linux specialist http://www.sysmic.fr