diff options
author | Niklas Haas <git@haasn.xyz> | 2017-09-27 17:08:06 +0200 |
---|---|---|
committer | Martin Herkt <652892+lachs0r@users.noreply.github.com> | 2017-12-25 00:47:53 +0100 |
commit | 4e34615872011f906bf653f61e7ac75d2066a06b (patch) | |
tree | 25dc37e11f1f5cdb34619a22091dbf0dc9cf1116 /video/out/vulkan/ra_vk.c | |
parent | ad50e640dcf94da7f14c908a96c05b3de791d498 (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.c | 2 |
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); |