From 2c6366590e912714913680af8ea628262975755c Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 15 May 2020 00:16:58 +0100 Subject: hwcontext_vulkan: do not OR the user-specified usage with our default flags Some users may need special formats that aren't available when the STORAGE flag bit is set, which would result in allocations failing. --- libavutil/hwcontext_vulkan.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavutil/hwcontext_vulkan.h') diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h index 656411e0a8..0ac34658b2 100644 --- a/libavutil/hwcontext_vulkan.h +++ b/libavutil/hwcontext_vulkan.h @@ -112,8 +112,8 @@ typedef struct AVVulkanFramesContext { */ VkImageTiling tiling; /** - * Defines extra usage of output frames. This is bitwise OR'd with the - * standard usage flags (SAMPLED, STORAGE, TRANSFER_SRC and TRANSFER_DST). + * Defines extra usage of output frames. If left as 0, the following bits + * are set: TRANSFER_SRC, TRANSFER_DST. SAMPLED and STORAGE. */ VkImageUsageFlagBits usage; /** -- cgit v1.2.3