mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-22 11:30:06 +01:00
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
|
||
|---|---|---|
| .. | ||
| pci_ids | ||
| dri2.c | ||
| dri2.h | ||
| dri2ext.c | ||
| dri2int.h | ||
| Makefile.am | ||
| meson.build | ||