c/main: Use vk_cmd_submit_locked in vk_helper to simply peek logic

Signed-off-by: utzcoz <utzcoz@outlook.com>
This commit is contained in:
utzcoz 2023-06-23 18:06:41 +08:00
parent 2173f44f4c
commit e0433b4e09

View file

@ -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. // Done writing commands, submit to queue.
os_mutex_lock(&vk->queue_mutex); ret = vk_cmd_submit_locked(vk, 1, &submit, VK_NULL_HANDLE);
ret = vk->vkQueueSubmit(vk->queue, 1, &submit, VK_NULL_HANDLE);
os_mutex_unlock(&vk->queue_mutex);
// Done submitting commands, unlock pool. // Done submitting commands, unlock pool.
vk_cmd_pool_unlock(&w->pool); vk_cmd_pool_unlock(&w->pool);