[Buildroot] [PATCH 1/1] package/mesa3d: reorder platforms to fix EGL
peter at korsgaard.com
Tue May 26 09:21:33 UTC 2020
>>>>> "Joseph" == Joseph Kogut <joseph.kogut at gmail.com> writes:
> Mesa chooses the first platform specified in -Dplatforms as the default
> EGL native platform. 
> Configure Options
> -D platforms=...
> List the platforms (window systems) to support. Its argument is
> a comma separated string such as -D platforms=x11,drm. It
> decides the platforms a driver may support. The first listed
> platform is also used by the main library to decide the native
> This has the effect of breaking EGL applications running on X11 and
> possibly Wayland when the first platform specified isn't x11 or wayland,
> and EGL_PLATFORM isn't set.
> Reorder the specified platforms to use x11, wayland, and drm before
> surfaceless, as this is the order chosen by other common distributions,
> such as Arch Linux , Debian , and Fedora .
> Users preferring drm or surfaceless over x11 or wayland likely know how
> to override the native EGL platform, and likely have x11 and wayland
> disabled anyway.
>  https://www.mesa3d.org/egl.html
>  https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/mesa#n45
>  https://salsa.debian.org/xorg-team/lib/mesa/-/blob/fb8c1efb57ea8106525ed01c41218164f8be7f3b/debian/rules#L38
>  https://src.fedoraproject.org/rpms/mesa/blob/master/f/mesa.spec#_337
> Signed-off-by: Joseph Kogut <joseph.kogut at gmail.com>
> This is a follow up to a previous email I sent the mailing list  about
> broken EGL apps when using mesa3d with x11.
> I discovered the cause of this issue is the ordering of platforms when
> building mesa3d, making surfaceless the default native platform.
> I suggested adding a config to specify the default native platform, but
> after further review, I believe that simply reordering the enabled
> platforms should be adequate.
>  http://buildroot-busybox.2317881.n4.nabble.com/mesa3d-builds-with-ES2-report-no-ES2-enabled-EGL-configs-td255778.html
Committed to 2020.02.x, thanks.
Bye, Peter Korsgaard
More information about the buildroot