glamor with glx and dri2 locks up display
Submitted by am...@..il.com
Assigned to Xorg Project Team
This locks up the X display with no error in Xorg.log or dmesg when using modesetting driver with glamor:
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:
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.