diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-03 17:48:36 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-03 22:56:25 +0100 |
commit | 1b7308b61db02fb2475585933a146253c87812de (patch) | |
tree | e4f759f394e53100e648be3dd57e14cf82fc12a0 /libavutil/vulkan.c | |
parent | c346c097af1e5ca0fe809607b716ca3b6c52e314 (diff) | |
download | ffmpeg-1b7308b61db02fb2475585933a146253c87812de.tar.gz |
avutil/vulkan: Remove unused ff_vk_set_descriptor_sampler()
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/vulkan.c')
-rw-r--r-- | libavutil/vulkan.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index c725634fef..67b9526255 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1632,33 +1632,6 @@ static inline void update_set_descriptor(FFVulkanContext *s, FFVkExecContext *e, vk->GetDescriptorEXT(s->hwctx->act_dev, desc_get_info, desc_size, desc); } -int ff_vk_set_descriptor_sampler(FFVulkanContext *s, FFVulkanPipeline *pl, - FFVkExecContext *e, int set, int bind, int offs, - VkSampler *sampler) -{ - FFVulkanDescriptorSet *desc_set = &pl->desc_set[set]; - VkDescriptorGetInfoEXT desc_get_info = { - .sType = VK_STRUCTURE_TYPE_DESCRIPTOR_GET_INFO_EXT, - .type = desc_set->binding[bind].descriptorType, - }; - - switch (desc_get_info.type) { - case VK_DESCRIPTOR_TYPE_SAMPLER: - desc_get_info.data.pSampler = sampler; - break; - default: - av_log(s, AV_LOG_ERROR, "Invalid descriptor type at set %i binding %i: %i!\n", - set, bind, desc_get_info.type); - return AVERROR(EINVAL); - break; - }; - - update_set_descriptor(s, e, desc_set, bind, offs, &desc_get_info, - s->desc_buf_props.samplerDescriptorSize); - - return 0; -} - static int vk_set_descriptor_image(FFVulkanContext *s, FFVulkanPipeline *pl, FFVkExecContext *e, int set, int bind, int offs, VkImageView view, VkImageLayout layout, |