xserver/hw/xfree86/dri2
Doug Brown 0c6a7750f2 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
(cherry picked from commit a0834009cf)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1824>
2025-02-25 10:42:21 +01:00
..
pci_ids dri2: Sync i965_pci_ids.h from mesa iris_pci_ids.h 2021-04-24 19:21:41 +00:00
dri2.c dri2: Protect against dri2ClientPrivate assertion failures 2025-02-25 10:42:21 +01:00
dri2.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
dri2ext.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
dri2int.h Move DRI2 from external module to built-in 2012-07-10 00:31:01 -07:00
Makefile.am dri2: Distribute new pci_ids headers 2014-10-28 21:30:23 -07:00
meson.build meson: Make driprotos and libdrm optional 2017-05-10 14:43:13 -04:00