mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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:
parent
e7351178aa
commit
44791ba825
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue