Mesa Vulkan KHR_present_wait Support Extended To Wayland
VK_KHR_present_wait is an extension originally started by Keith Packard working for Valve on improving the Linux graphics stack. The VK_KHR_present_wait extension allows for waiting for present operations to complete and can be used for monitoring/pacing the application by managing the number of images not yet presented. This Vulkan extension had been supported by Mesa Vulkan drivers under X.Org and now is being enabled for Wayland environments too.
Implementing VK_KHR_present_wait for Mesa's Wayland windowing system integration (WSI) code was started by Daniel Stone and now carried over the finish line by Valve's Hans-Kristian Arntzen. This complements the initial support added last year. The extension itself was added to the Vulkan spec in 2021.
The merge adding the Wayland Vulkan WSI support for VK_KHR_present_wait goes on to explain:
This addition will be found in the Mesa 23.2 release due out next quarter.
Implementing VK_KHR_present_wait for Mesa's Wayland windowing system integration (WSI) code was started by Daniel Stone and now carried over the finish line by Valve's Hans-Kristian Arntzen. This complements the initial support added last year. The extension itself was added to the Vulkan spec in 2021.
The merge adding the Wayland Vulkan WSI support for VK_KHR_present_wait goes on to explain:
"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."
This addition will be found in the Mesa 23.2 release due out next quarter.
2 Comments