From 23cfcf93d22cffbaf683df43152740bbbc893bcd Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 24 Nov 2025 22:34:51 +0100 Subject: [PATCH] vulkan: change ff_vk_frame_barrier access and stage type to sync2 Cleans up a compiler warning. --- libavutil/vulkan.c | 10 +++++----- libavutil/vulkan.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index c7f86d524c..1a1d7d0f8d 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -2043,11 +2043,11 @@ fail: void ff_vk_frame_barrier(FFVulkanContext *s, FFVkExecContext *e, AVFrame *pic, VkImageMemoryBarrier2 *bar, int *nb_bar, - VkPipelineStageFlags src_stage, - VkPipelineStageFlags dst_stage, - VkAccessFlagBits new_access, - VkImageLayout new_layout, - uint32_t new_qf) + VkPipelineStageFlags2 src_stage, + VkPipelineStageFlags2 dst_stage, + VkAccessFlagBits2 new_access, + VkImageLayout new_layout, + uint32_t new_qf) { int found = -1; AVVkFrame *vkf = (AVVkFrame *)pic->data[0]; diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h index bdc20e4645..868788c2a4 100644 --- a/libavutil/vulkan.h +++ b/libavutil/vulkan.h @@ -507,10 +507,10 @@ int ff_vk_create_imageviews(FFVulkanContext *s, FFVkExecContext *e, void ff_vk_frame_barrier(FFVulkanContext *s, FFVkExecContext *e, AVFrame *pic, VkImageMemoryBarrier2 *bar, int *nb_bar, - VkPipelineStageFlags src_stage, - VkPipelineStageFlags dst_stage, - VkAccessFlagBits new_access, - VkImageLayout new_layout, + VkPipelineStageFlags2 src_stage, + VkPipelineStageFlags2 dst_stage, + VkAccessFlagBits2 new_access, + VkImageLayout new_layout, uint32_t new_qf); /**