diff options
author | Lynne <dev@lynne.ee> | 2024-09-29 08:07:05 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-10-04 10:10:42 +0200 |
commit | 37d5cb84e8ab724e575c5819518f761ba88886c7 (patch) | |
tree | 2dc8684b34ccc03a0facd80d097460516459df94 /libavfilter/vulkan_filter.c | |
parent | 877c5a969233866983ff0c4e7b32b83a00ce0973 (diff) | |
download | ffmpeg-37d5cb84e8ab724e575c5819518f761ba88886c7.tar.gz |
vulkan: check if current buffer has finished execution before picking another
This saves resources, as dependencies are freed/reclaimed with a lower latency,
and provies a speedup.
Diffstat (limited to 'libavfilter/vulkan_filter.c')
-rw-r--r-- | libavfilter/vulkan_filter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vulkan_filter.c b/libavfilter/vulkan_filter.c index 5cee4572e6..8d9b416d6a 100644 --- a/libavfilter/vulkan_filter.c +++ b/libavfilter/vulkan_filter.c @@ -249,7 +249,7 @@ int ff_vk_filter_process_simple(FFVulkanContext *vkctx, FFVkExecPool *e, int nb_img_bar = 0; /* Update descriptors and init the exec context */ - FFVkExecContext *exec = ff_vk_exec_get(e); + FFVkExecContext *exec = ff_vk_exec_get(vkctx, e); ff_vk_exec_start(vkctx, exec); RET(ff_vk_exec_add_dep_frame(vkctx, exec, out_f, @@ -321,7 +321,7 @@ int ff_vk_filter_process_2pass(FFVulkanContext *vkctx, FFVkExecPool *e, int nb_img_bar = 0; /* Update descriptors and init the exec context */ - FFVkExecContext *exec = ff_vk_exec_get(e); + FFVkExecContext *exec = ff_vk_exec_get(vkctx, e); ff_vk_exec_start(vkctx, exec); RET(ff_vk_exec_add_dep_frame(vkctx, exec, in, @@ -409,7 +409,7 @@ int ff_vk_filter_process_Nin(FFVulkanContext *vkctx, FFVkExecPool *e, int nb_img_bar = 0; /* Update descriptors and init the exec context */ - FFVkExecContext *exec = ff_vk_exec_get(e); + FFVkExecContext *exec = ff_vk_exec_get(vkctx, e); ff_vk_exec_start(vkctx, exec); /* Add deps and create temporary imageviews */ |