xserver-multidpi/dri3
Daniel Stone 75bba3aedc dri3: Use single-FD screen call for single-FD request
When importing client buffers into Pixmaps, we can use the fds_to_pixmap
hook for both single-FD and multi-FD client requests without any harm.

For the other direction of exporting Pixmap buffers to client FDs,
create a new helper which calls the old pixmap_to_fd hook if available.
This allows the implementation to ensure that the Pixmap storage is
accessible to clients not aware of multiple planes or modifiers, e.g. by
reallocating and copying.

This makes it possible to run a compositing manager on an old GLX/EGL
stack on top of an X server which allocates internal buffer storage
using exotic modifiers from modifier-aware GBM/EGL/KMS.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reported-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-04-04 13:46:57 -04:00
..
dri3_priv.h dri3: Use single-FD screen call for single-FD request 2018-04-04 13:46:57 -04:00
dri3_request.c dri3: Use single-FD screen call for single-FD request 2018-04-04 13:46:57 -04:00
dri3_screen.c dri3: Use single-FD screen call for single-FD request 2018-04-04 13:46:57 -04:00
dri3.c dri3: Add multi-planar/modifier buffer requests 2018-03-05 13:27:20 -05:00
dri3.h dri3: Add multi-planar/modifier buffer requests 2018-03-05 13:27:20 -05: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