Module: Mesa Branch: main Commit: 44791ba8259e492e111f9eb397f4623da053721a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=44791ba8259e492e111f9eb397f4623da053721a
Author: Iago Toral Quiroga <[email protected]> Date: Thu May 5 08:44:45 2022 +0200 v3dv: check input attachment usage as sampled usage 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16344> --- 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; }
