mesa/src/loader
Olivier Fourdan 03a61b977e dri3: For 1.2, use root window instead of pixmap drawable
get_supported_modifiers() and pixmap_from_buffers() requests both
expect a window as drawable, passing a pixmap will fail as the Xserver
will fail to match the given drawable to a window.

That leads to dri3_alloc_render_buffer() to return NULL and breaks
rendering when using GLX_DOUBLEBUFFER on pixmaps.

Query the root window of the pixmap on first init, and use the root
window instead of the pixmap drawable for get_supported_modifiers()
and pixmap_from_buffers().

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107117
Fixes: 069fdd5 ("egl/x11: Support DRI3 v1.1")
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2018-07-31 13:51:59 -04:00
..
Android.mk Android: move libdrm settings to top-level Android.common.mk 2016-06-13 15:31:29 +01:00
loader.c loader: Add support for platform and host1x busses 2018-03-02 14:40:29 +01:00
loader.h egl: turn one more boolean int into a bool 2017-06-21 21:42:14 +01:00
loader_dri3_helper.c dri3: For 1.2, use root window instead of pixmap drawable 2018-07-31 13:51:59 -04:00
loader_dri3_helper.h dri3: For 1.2, use root window instead of pixmap drawable 2018-07-31 13:51:59 -04:00
Makefile.am loader: Include include/drm-uapi in the autotools build 2018-03-16 08:50:07 -07:00
Makefile.sources loader: Add headers to distribution. 2014-12-12 12:11:47 -08:00
meson.build egl/x11: Support DRI3 v1.1 2018-03-09 17:47:14 +00:00
pci_id_driver_map.c nouveau: allow NV3x's to be used with nouveau_vieux 2016-08-30 00:21:42 -04:00
pci_id_driver_map.h radeonsi: remove unused field in the PCI ID table 2017-11-07 17:26:36 +01:00
SConscript scons: remove all libudev references 2016-10-18 17:06:21 +01:00