diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-03 17:36:52 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-03 22:56:21 +0100 |
commit | c346c097af1e5ca0fe809607b716ca3b6c52e314 (patch) | |
tree | 6ffc7694e148b26b36a350afbc2471488ebeb668 /libavutil/vulkan.c | |
parent | c0d31cec7f282a88b046672cf083ec53bce05140 (diff) | |
download | ffmpeg-c346c097af1e5ca0fe809607b716ca3b6c52e314.tar.gz |
avutil/vulkan: Make ff_vk_set_descriptor_image() static
Only used in vulkan.c.
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 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 4392a77d6c..c725634fef 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1659,9 +1659,10 @@ int ff_vk_set_descriptor_sampler(FFVulkanContext *s, FFVulkanPipeline *pl, return 0; } -int ff_vk_set_descriptor_image(FFVulkanContext *s, FFVulkanPipeline *pl, - FFVkExecContext *e, int set, int bind, int offs, - VkImageView view, VkImageLayout layout, VkSampler sampler) +static int vk_set_descriptor_image(FFVulkanContext *s, FFVulkanPipeline *pl, + FFVkExecContext *e, int set, int bind, int offs, + VkImageView view, VkImageLayout layout, + VkSampler sampler) { FFVulkanDescriptorSet *desc_set = &pl->desc_set[set]; VkDescriptorGetInfoEXT desc_get_info = { @@ -1758,8 +1759,8 @@ void ff_vk_update_descriptor_img_array(FFVulkanContext *s, FFVulkanPipeline *pl, const int nb_planes = av_pix_fmt_count_planes(hwfc->sw_format); for (int i = 0; i < nb_planes; i++) - ff_vk_set_descriptor_image(s, pl, e, set, binding, i, - views[i], layout, sampler); + vk_set_descriptor_image(s, pl, e, set, binding, i, + views[i], layout, sampler); } void ff_vk_update_push_exec(FFVulkanContext *s, FFVkExecContext *e, |