xserver/hw/xfree86/dri2
Doug Brown a0834009cf 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>
2025-02-19 11:25:01 +00:00
..
pci_ids Remove autotools support 2021-10-27 13:15:40 +03:00
dri2.c dri2: Protect against dri2ClientPrivate assertion failures 2025-02-19 11:25:01 +00:00
dri2.h xfree86: move private definitions out of dri2.h 2025-02-06 23:51:34 +00:00
dri2_priv.h xfree86: move private definitions out of dri2.h 2025-02-06 23:51:34 +00:00
dri2ext.c xfree86: move private definitions out of dri2.h 2025-02-06 23:51:34 +00:00
dri2int.h Move DRI2 from external module to built-in 2012-07-10 00:31:01 -07:00
meson.build meson: Make driprotos and libdrm optional 2017-05-10 14:43:13 -04:00