Skip to content

wsi/wayland: Support VK_KHR_present_wait

Hans-Kristian Arntzen requested to merge themaister/mesa:wl-present-wait into main

Use the wp_presentation extension to detect when a given presentation has taken effect.

Since this protocol is not guaranteed to be supported, it must be enabled through driconf (vk_khr_present_wait=true) for the time being, since otherwise KHR_present_wait is not exposed at all when Wayland surface is enabled.

If present_wait is still used, even if protocol is not supported, it will fallback to just waiting on WSI timeline which is best effort with Wayland at that point.

(Original MR by Daniel Stone, I just did rebase, minor bugfixes, etc).

Edited by Hans-Kristian Arntzen

Merge request reports