Skip to content

egl/dri2: avoid holding big display lock upon client wait

Yiwei Zhang requested to merge zzyiwei/mesa:unlock-client-wait into main

It's safe to drop the global display lock after the sync object is referenced as long as we also add a reference for the display. Drop the refs accordingly. If display loses all refs, which suggests eglTerminate gets called during sleep, pick up display release.

Related: #7039 (closed)

/cc @robclark @olv @ryanneph

Edited by Yiwei Zhang

Merge request reports