aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/vulkan/ra_vk.c
diff options
context:
space:
mode:
authorGravatar Niklas Haas <git@haasn.xyz>2017-09-27 17:08:06 +0200
committerGravatar Martin Herkt <652892+lachs0r@users.noreply.github.com>2017-12-25 00:47:53 +0100
commit4e34615872011f906bf653f61e7ac75d2066a06b (patch)
tree25dc37e11f1f5cdb34619a22091dbf0dc9cf1116 /video/out/vulkan/ra_vk.c
parentad50e640dcf94da7f14c908a96c05b3de791d498 (diff)
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
Diffstat (limited to 'video/out/vulkan/ra_vk.c')
-rw-r--r--video/out/vulkan/ra_vk.c2
1 files changed, 1 insertions, 1 deletions
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);