From 9548d68e5b54dfa46620d441da4ff44b3b64f2bf Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 4 Aug 2026 01:13:22 +0900 Subject: [PATCH] vulkan: remove ff_vk_exec_add_dep_buf --- libavutil/vulkan.c | 20 -------------------- libavutil/vulkan.h | 2 -- 2 files changed, 22 deletions(-) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 15777c70fc..0b7effcc58 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -684,26 +684,6 @@ void ff_vk_exec_discard_deps(FFVulkanContext *s, FFVkExecContext *e) e->sem_sig_val_dst_cnt = 0; } -int ff_vk_exec_add_dep_buf(FFVulkanContext *s, FFVkExecContext *e, - AVBufferRef **deps, int nb_deps, int ref) -{ - av_assert1((e->nb_buf_deps + nb_deps) <= FF_VK_EXEC_MAX_BUF_DEPS); - - for (int i = 0; i < nb_deps; i++) { - if (!deps[i]) - continue; - - e->buf_deps[e->nb_buf_deps] = ref ? av_buffer_ref(deps[i]) : deps[i]; - if (!e->buf_deps[e->nb_buf_deps]) { - ff_vk_exec_discard_deps(s, e); - return AVERROR(ENOMEM); - } - e->nb_buf_deps++; - } - - return 0; -} - void ff_vk_exec_add_dep_refstruct(FFVulkanContext *s, FFVkExecContext *e, void *obj) { diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h index 49d3fbce93..e0dc60746b 100644 --- a/libavutil/vulkan.h +++ b/libavutil/vulkan.h @@ -493,8 +493,6 @@ void ff_vk_exec_wait(FFVulkanContext *s, FFVkExecContext *e); * update_frame will update the frame's properties before it is unlocked, * only if submission was successful. */ -int ff_vk_exec_add_dep_buf(FFVulkanContext *s, FFVkExecContext *e, - AVBufferRef **deps, int nb_deps, int ref); /* Takes a new reference to an AVRefStruct-managed object, held until the * execution's dependencies are released. */