radv: do not enable DCC for fragment shading rate attachments

That's unnecessary.

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:
Samuel Pitoiset 2021-03-22 17:49:24 +01:00 committed by Marge Bot
parent 5980cd5768
commit 9141716481
1 changed files with 4 additions and 0 deletions

View File

@ -230,6 +230,10 @@ radv_use_dcc_for_image(struct radv_device *device, const struct radv_image *imag
radv_formats_is_atomic_allowed(pCreateInfo->pNext, format, pCreateInfo->flags)))
return false;
/* Do not enable DCC for fragment shading rate attachments. */
if (pCreateInfo->usage & VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR)
return false;
if (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR)
return false;