xserver/hw
Doug Brown 0fcef31fd8 dri2: Protect against dri2ClientPrivate assertion failures
If DRI2ScreenInit hasn't been called yet, DRI2Authenticate and
DRI2CreateDrawable2 cause the X server to crash. This has been observed
to happen on multiple modern Linux distros in various conditions,
including QEMU and VMware VMs. Make these functions more robust in order
to prevent the crash.

This patch was originally provided by Bernhard Übelacker and expanded
upon by Mark Wagner.

Signed-off-by: Doug Brown <doug@schmorgal.com>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1053
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1534
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1608>
(cherry picked from commit a0834009cf)
2026-01-25 10:40:00 -08:00
..
kdrive treewide: replace xnfcalloc() calls by XNFcallocarray() 2026-01-25 10:39:55 -08:00
vfb xvfb: Add multiple CRTC support 2026-01-25 10:40:00 -08:00
xfree86 dri2: Protect against dri2ClientPrivate assertion failures 2026-01-25 10:40:00 -08:00
xnest include: dixfontstr.h: drop silent dependency on libxfont2 2026-01-25 10:39:56 -08:00
xquartz xquartz: fix inverted tablet pen Y tilt on macOS 2026-01-25 10:40:00 -08:00
xwayland xwayland: drop swapping request length fields 2026-01-25 10:39:59 -08:00
xwin xwin: drop swapping request length fields 2026-01-25 10:39:59 -08:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00