mirror of https://gitlab.freedesktop.org/mesa/mesa
radv: fix image format properties with fragment shading rate usage
This was missing and this caused test failures for formats different than VK_FORMAT_R8_UINT which is the only one supported for FSR. Fixes recent dEQP-VK.api.info.unsupported_image_usage.*.fragment_shading_rate_attachment.*. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28893>
This commit is contained in:
parent
ce1bbd241e
commit
e8d94536d2
|
@ -1531,6 +1531,11 @@ radv_get_image_format_properties(struct radv_physical_device *pdev, const VkPhys
|
|||
}
|
||||
}
|
||||
|
||||
if (image_usage & VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR) {
|
||||
if (!(format_feature_flags & VK_FORMAT_FEATURE_2_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR))
|
||||
goto unsupported;
|
||||
}
|
||||
|
||||
/* Sparse resources with multi-planar formats are unsupported. */
|
||||
if (info->flags & VK_IMAGE_CREATE_SPARSE_BINDING_BIT) {
|
||||
if (vk_format_get_plane_count(format) > 1)
|
||||
|
|
Loading…
Reference in New Issue