glamor with glx and dri2 locks up display
Submitted by am...@..il.com
Assigned to Xorg Project Team
Link to original bug (#108360)
Description
This locks up the X display with no error in Xorg.log or dmesg when using modesetting driver with glamor:
LIBGL_DRI3_DISABLE=1 glxgears
when dri3 and dri2 are both available with xserver 1.20.1. Only cursor is visible but display becomes unresponsive. glxgears with DRI3 doesn't lead to such a problem.
I did a bisect and the bad commit is:
commit 86b2d874 Author: Daniel Stone daniels@collabora.com Date: Wed Apr 4 16:16:36 2018 +0100
glamor: Reallocate pixmap storage without modifiers if necessary
If we need a pixmap's storage to be exported to a context in which we
aren't aware of modifiers, reallocate the buffer again without
modifiers.
This makes it possible to run a compositing manager on an old GLX/EGL
stack on top of an X server which allocates internal buffer storage
using exotic modifiers from modifier-aware GBM/EGL/KMS.
Using Intel DDX driver works. Disabling glamor also works.
GBM_BO_WITH_MODIFIERS is 1 and passing TRUE to glamor_make_pixmap_exportable in glamor_egl_fd_name_from_pixmap helps.
Version: git