mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
anv: check requirements for VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE
Somehow I missed this one in164c0951a0If the format the image is being created with doesn't have the FSR format feature, report it as unsupported. Also fixes future CTS tests: dEQP-VK.api.info.unsupported_image_usage.* Cc: mesa-stable Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28913> (cherry picked from commit8ebf07eccd)
This commit is contained in:
parent
8197d55180
commit
1ac05d0409
2 changed files with 7 additions and 1 deletions
|
|
@ -1804,7 +1804,7 @@
|
|||
"description": "anv: check requirements for VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1077,6 +1077,12 @@ anv_format_supports_usage(
|
|||
*/
|
||||
}
|
||||
|
||||
if (usage_flags & VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR) {
|
||||
if (!(format_feature_flags & VK_FORMAT_FEATURE_2_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue