From e0433b4e092440b0f72e2127dd9bdad2667c9d12 Mon Sep 17 00:00:00 2001 From: utzcoz Date: Fri, 23 Jun 2023 18:06:41 +0800 Subject: [PATCH] c/main: Use vk_cmd_submit_locked in vk_helper to simply peek logic Signed-off-by: utzcoz --- src/xrt/compositor/main/comp_window_peek.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xrt/compositor/main/comp_window_peek.c b/src/xrt/compositor/main/comp_window_peek.c index 8fdddc0ac..038bc82bb 100644 --- a/src/xrt/compositor/main/comp_window_peek.c +++ b/src/xrt/compositor/main/comp_window_peek.c @@ -423,9 +423,7 @@ comp_window_peek_blit(struct comp_window_peek *w, VkImage src, int32_t width, in }; // Done writing commands, submit to queue. - os_mutex_lock(&vk->queue_mutex); - ret = vk->vkQueueSubmit(vk->queue, 1, &submit, VK_NULL_HANDLE); - os_mutex_unlock(&vk->queue_mutex); + ret = vk_cmd_submit_locked(vk, 1, &submit, VK_NULL_HANDLE); // Done submitting commands, unlock pool. vk_cmd_pool_unlock(&w->pool);