Skip to content

vulkan/x11: Mark present complete using serial instead of MSC

Keith Packard requested to merge keithp/mesa:fix-bug-1015 into master

Present operations do not necessarily complete after the requested time; if the CRTC has been blanked, they will complete immediately. This means we cannot use the MSC value to tell when a present has finished.

Instead of using MSC, track whether each present is complete by serial number, which is the low 32-bits of the SBC value. This value is provided in the present_pixmap request and returned in the present complete notify event.

Fixes: #4700 (closed) vkAcquireNextImageKHR() blocks forever when screen is off and then turn on again Signed-off-by: Keith Packard keithp@keithp.com

Merge request reports

Loading