xserver/hw
Olivier Fourdan 1cce4bfd68 xwayland/eglstream: Add more error checking
eglCreateStreamKHR() can fail and return EGL_NO_STREAM_KHR, in which
case there is no point in trying to create a buffer from it.

Similarly, eglCreateStreamProducerSurfaceKHR() also fail and return
EGL_NO_SURFACE, which in turn will be used in eglMakeCurrent() as
draw/read surface, and therefore would mean no draw/read buffer.

In those cases, log the error, and bail out early. That won't solve the
issue but will help with investigating the root cause of issues with
EGLStream backend.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1156
(cherry picked from commit cc596bcfb2)
2021-06-21 11:16:58 +02:00
..
vfb Don't install Xvfb 2021-02-03 18:22:18 +01:00
xwayland xwayland/eglstream: Add more error checking 2021-06-21 11:16:58 +02:00
meson.build Drop Xephyr / kdrive DDX 2021-02-03 18:13:15 +01:00