From 4e34615872011f906bf653f61e7ac75d2066a06b Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 27 Sep 2017 17:08:06 +0200 Subject: vo_gpu: vulkan: refactor vk_cmdpool 1. No more static arrays (deps / callbacks / queues / cmds) 2. Allows safely recording multiple commands at the same time 3. Uses resources optimally by never over-allocating commands --- video/out/vulkan/ra_vk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vulkan/ra_vk.c') diff --git a/video/out/vulkan/ra_vk.c b/video/out/vulkan/ra_vk.c index f85e30e21c..9101233495 100644 --- a/video/out/vulkan/ra_vk.c +++ b/video/out/vulkan/ra_vk.c @@ -75,7 +75,7 @@ static void vk_destroy_ra(struct ra *ra) struct mpvk_ctx *vk = ra_vk_get(ra); vk_flush(ra, NULL); - mpvk_dev_wait_idle(vk); + mpvk_dev_wait_cmds(vk, UINT64_MAX); ra_tex_free(ra, &p->clear_tex); talloc_free(ra); -- cgit v1.2.3