xserver-multidpi/dri3
Mario Kleiner fbc5c5cd53 dri3: Fix error handling in dri3_buffer_from_pixmap request.
The old info->fd_from_pixmap() driver hook, which is
preferentially used in dri3_fd_from_pixmap(), can return
error codes other than -1, e.g., -EINVAL (-22) on nouveau-ddx.

Not handling the error causes a broken/corrupted X-Connection
resulting from a failed request.

This fixes failure of sddm-greeter to start up under nouveau-ddx
with DRI3 enabled and DRI3 protocol version properly clamped
to 1.0 by the server (see followup patch).

Fixes: 75bba3aedc ("dri3: Use single-FD screen call for single-FD request")
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Cc: Daniel Stone <daniels@collabora.com>
2018-04-30 13:47:44 -04:00
..
dri3_priv.h dri3: annotate fds/strides/offsets arrays as const 2018-04-10 15:42:40 -04:00
dri3_request.c dri3: Fix error handling in dri3_buffer_from_pixmap request. 2018-04-30 13:47:44 -04:00
dri3_screen.c dri3: Fix DRI3.2 support for drivers other than modesetting-ddx. 2018-04-25 14:48:58 -04:00
dri3.c dri3: annotate the dri3_screen_info data as const 2018-04-10 15:42:23 -04:00
dri3.h dri3: annotate fds/strides/offsets arrays as const 2018-04-10 15:42:40 -04:00
Makefile.am dri3: Add DRI3 extension 2013-10-31 16:58:30 -07:00
meson.build meson: Distribute more SDK headers 2018-04-02 13:42:08 -04:00