mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 03:45:24 +00:00
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:
parent
2173f44f4c
commit
e0433b4e09
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue