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>
release/7.0
Andreas Rheinhardt 1 year ago
parent c0d31cec7f
commit c346c097af
  1. 11
      libavutil/vulkan.c
  2. 3
      libavutil/vulkan.h

@ -1659,9 +1659,10 @@ int ff_vk_set_descriptor_sampler(FFVulkanContext *s, FFVulkanPipeline *pl,
return 0; return 0;
} }
int ff_vk_set_descriptor_image(FFVulkanContext *s, FFVulkanPipeline *pl, static int vk_set_descriptor_image(FFVulkanContext *s, FFVulkanPipeline *pl,
FFVkExecContext *e, int set, int bind, int offs, FFVkExecContext *e, int set, int bind, int offs,
VkImageView view, VkImageLayout layout, VkSampler sampler) VkImageView view, VkImageLayout layout,
VkSampler sampler)
{ {
FFVulkanDescriptorSet *desc_set = &pl->desc_set[set]; FFVulkanDescriptorSet *desc_set = &pl->desc_set[set];
VkDescriptorGetInfoEXT desc_get_info = { 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); const int nb_planes = av_pix_fmt_count_planes(hwfc->sw_format);
for (int i = 0; i < nb_planes; i++) for (int i = 0; i < nb_planes; i++)
ff_vk_set_descriptor_image(s, pl, e, set, binding, i, vk_set_descriptor_image(s, pl, e, set, binding, i,
views[i], layout, sampler); views[i], layout, sampler);
} }
void ff_vk_update_push_exec(FFVulkanContext *s, FFVkExecContext *e, void ff_vk_update_push_exec(FFVulkanContext *s, FFVkExecContext *e,

@ -485,9 +485,6 @@ void ff_vk_exec_bind_pipeline(FFVulkanContext *s, FFVkExecContext *e,
int ff_vk_set_descriptor_sampler(FFVulkanContext *s, FFVulkanPipeline *pl, int ff_vk_set_descriptor_sampler(FFVulkanContext *s, FFVulkanPipeline *pl,
FFVkExecContext *e, int set, int bind, int offs, FFVkExecContext *e, int set, int bind, int offs,
VkSampler *sampler); VkSampler *sampler);
int ff_vk_set_descriptor_image(FFVulkanContext *s, FFVulkanPipeline *pl,
FFVkExecContext *e, int set, int bind, int offs,
VkImageView view, VkImageLayout layout, VkSampler sampler);
int ff_vk_set_descriptor_buffer(FFVulkanContext *s, FFVulkanPipeline *pl, int ff_vk_set_descriptor_buffer(FFVulkanContext *s, FFVulkanPipeline *pl,
FFVkExecContext *e, int set, int bind, int offs, FFVkExecContext *e, int set, int bind, int offs,
VkDeviceAddress addr, VkDeviceSize len, VkFormat fmt); VkDeviceAddress addr, VkDeviceSize len, VkFormat fmt);

Loading…
Cancel
Save