anv: return unsupported for FSR images on Gfx12.0

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28131>
(cherry picked from commit 2a77a46837)
This commit is contained in:
Lionel Landwerlin 2024-03-12 18:36:14 +02:00 committed by Eric Engestrom
parent 57d1d40413
commit 2832e9fe77
2 changed files with 5 additions and 1 deletions

View file

@ -464,7 +464,7 @@
"description": "anv: return unsupported for FSR images on Gfx12.0",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1464,6 +1464,10 @@ anv_get_image_format_properties(
}
}
if ((info->usage & VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR) &&
!devinfo->has_coarse_pixel_primitive_and_cb)
goto unsupported;
/* From the bspec section entitled "Surface Layout and Tiling",
* Gfx9 has a 256 GB limitation and Gfx11+ has a 16 TB limitation.
*/