mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
radv: expose R8_UINT as the only supported format for VRS attachments
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187>
This commit is contained in:
parent
f232c404d3
commit
ec6da922df
1 changed files with 11 additions and 0 deletions
|
|
@ -785,6 +785,17 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
|
|||
if (vk_format_is_compressed(format))
|
||||
linear = 0;
|
||||
|
||||
/* From the Vulkan spec 1.2.163:
|
||||
*
|
||||
* "VK_FORMAT_FEATURE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR must be supported for the
|
||||
* following formats if the attachmentFragmentShadingRate feature is supported:"
|
||||
*
|
||||
* - VK_FORMAT_R8_UINT
|
||||
*/
|
||||
if (format == VK_FORMAT_R8_UINT) {
|
||||
tiled |= VK_FORMAT_FEATURE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR;
|
||||
}
|
||||
|
||||
out_properties->linearTilingFeatures = linear;
|
||||
out_properties->optimalTilingFeatures = tiled;
|
||||
out_properties->bufferFeatures = buffer;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue