mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
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:
parent
8754f9e8f9
commit
7d44ba7217
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue