xserver/hw
Olivier Fourdan 6dd9709bd8 xwayland/eglstream: Prefer EGLstream if available
Currently, when given the choice, Xwayland will pick the GBM backend
over the EGLstream backend if both are available, unless the command
line option “-eglstream” is specified.

The NVIDIA proprietary driver had no support for GBM until driver series
495, but starting with the driver series 495, both can be used.

But there are other requirements with the rest of the stack, typically
Mesa, egl-wayland, libglvnd as documented in the NVIDIA driver.

So if the NVIDIA driver series 495 gets installed, Xwayland will pick
the GBM backend even if EGLstream is available and may fail to render
properly.

To avoid that issue, prefer EGLstream if EGLstream and all the Wayland
interfaces are available, and fallback to GBM automatically unless
“-eglstream” was specified.

With this, the compositor, given the choice, can decide which actual
backend Xwayland would use by advertising (or not) the Wayland
"wl_eglstream_controller" interface.

This change has no impact on compositors which do not have support for
EGLstream in the first place.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Acked-by: Michel Dänzer <mdaenzer@redhat.com>
2021-12-02 08:13:49 +00:00
..
kdrive Remove autotools support 2021-10-27 13:15:40 +03:00
vfb Remove autotools support 2021-10-27 13:15:40 +03:00
xfree86 xf86/logind: Fix drm_drop_master before vt_reldisp 2021-11-22 12:57:24 +01:00
xnest Remove autotools support 2021-10-27 13:15:40 +03:00
xquartz Remove autotools support 2021-10-27 13:15:40 +03:00
xwayland xwayland/eglstream: Prefer EGLstream if available 2021-12-02 08:13:49 +00:00
xwin meson: Fix build of xwinclip tool when xcb is installed in non-default location 2021-11-04 13:03:25 +00:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00