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 <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16344>
This commit is contained in:
Iago Toral Quiroga
2022-05-05 08:44:45 +02:00
committed by Marge Bot
parent e7351178aa
commit 44791ba825

View File

@@ -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;
}