mesa/src/gbm
Simon Ser 08a51770bd egl: fix software flag in _eglAddDevice call on DRM
On the EGL DRM platform, call _eglAddDevice with the software flag
set if GBM has loaded a software driver. This allows _eglAddDevice
to make the difference between llvmpipe and kmsro.

This is important on split render/display SoCs: we don't want to
advertise EGL_MESA_device_software on these systems.

Completely drop disp->Options.ForceSoftware, because GBM is
responsible for choosing software rendering and doesn't take this
hint into account.

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: 5743a36b2b ("egl: Don't add hardware device if there is no render node v2.")
References: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4178
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9697>
2021-03-26 10:32:31 +00:00
..
backends/dri egl: fix software flag in _eglAddDevice call on DRM 2021-03-26 10:32:31 +00:00
main gbm: add gbm_bo_get_fd_for_plane 2021-03-25 05:48:00 +00:00
Android.mk
Makefile.sources
gbm-symbols.txt gbm: add gbm_bo_get_fd_for_plane 2021-03-25 05:48:00 +00:00
meson.build meson: conditionally include -ldl in gbm pkg-config file 2020-08-31 09:14:57 +00:00