radv: enable DCC for layered color images on GFX10+

There is still some CTS failures on GFX9.

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/8368>
This commit is contained in:
Samuel Pitoiset 2021-01-07 14:55:54 +01:00 committed by Marge Bot
parent 8754f9e8f9
commit 7d44ba7217

View file

@ -179,10 +179,15 @@ radv_use_dcc_for_image(struct radv_device *device,
return false;
/* TODO: Enable DCC for mipmaps on GFX9+. */
if ((pCreateInfo->arrayLayers > 1 || pCreateInfo->mipLevels > 1) &&
if (pCreateInfo->mipLevels > 1 &&
device->physical_device->rad_info.chip_class >= GFX9)
return false;
/* FIXME: Fix DCC+layers on GFX9. */
if (pCreateInfo->arrayLayers > 1 &&
device->physical_device->rad_info.chip_class == GFX9)
return false;
/* Do not enable DCC for mipmapped arrays because performance is worse. */
if (pCreateInfo->arrayLayers > 1 && pCreateInfo->mipLevels > 1)
return false;