From 44791ba8259e492e111f9eb397f4623da053721a Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Thu, 5 May 2022 08:44:45 +0200 Subject: [PATCH] v3dv: check input attachment usage as sampled usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since we implement input attachments as textures we should check support for input attachment usage the same way we check support for sampled images. Reviewed-by: Alejandro PiƱeiro Part-of: --- src/broadcom/vulkan/v3dv_formats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_formats.c b/src/broadcom/vulkan/v3dv_formats.c index c8f0e8489ac..4751f50f06b 100644 --- a/src/broadcom/vulkan/v3dv_formats.c +++ b/src/broadcom/vulkan/v3dv_formats.c @@ -369,7 +369,8 @@ get_image_format_properties( } } - if (info->usage & VK_IMAGE_USAGE_SAMPLED_BIT) { + if (info->usage & (VK_IMAGE_USAGE_SAMPLED_BIT | + VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT)) { if (!(format_feature_flags & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT)) { goto unsupported; }