The open source OpenXR runtime

c/client: don't call vkQueueWaitIdle in client_vk_swapchain_destroy

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2531>

authored by

Simon Zeni and committed by
Marge Bot
cb83f93d b129e4b4

-10
-10
src/xrt/compositor/client/comp_vk_client.c
··· 16 16 17 17 #include "comp_vk_client.h" 18 18 19 - //! We are not allowed to touch the queue in xrDestroySwapchain 20 - #define BREAK_OPENXR_SPEC_IN_DESTROY_SWAPCHAIN (true) 21 - 22 19 // Prefixed with OXR since the only user right now is the OpenXR state tracker. 23 20 DEBUG_GET_ONCE_LOG_OPTION(vulkan_log, "OXR_VULKAN_LOG", U_LOGGING_INFO) 24 21 ··· 272 269 struct client_vk_swapchain *sc = client_vk_swapchain(xsc); 273 270 struct client_vk_compositor *c = sc->c; 274 271 struct vk_bundle *vk = &c->vk; 275 - 276 - // Make sure images are not used anymore. 277 - if (BREAK_OPENXR_SPEC_IN_DESTROY_SWAPCHAIN) { 278 - os_mutex_lock(&vk->queue_mutex); 279 - vk->vkQueueWaitIdle(vk->main_queue.queue); 280 - os_mutex_unlock(&vk->queue_mutex); 281 - } 282 272 283 273 for (uint32_t i = 0; i < sc->base.base.image_count; i++) { 284 274 if (sc->base.images[i] != VK_NULL_HANDLE) {