ac/surface: allow arbitrary swizzle modes for displayable DCC

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12430>
This commit is contained in:
Marek Olšák 2021-08-17 12:57:03 -04:00 committed by Marge Bot
parent 94d261029e
commit 556c10c02c
1 changed files with 0 additions and 10 deletions

View File

@ -1426,11 +1426,6 @@ static bool is_dcc_supported_by_DCN(const struct radeon_info *info,
switch (info->chip_class) {
case GFX9:
/* Only support 64KB_S_X, so that we have only 1 variant of the retile shader. */
if (info->use_display_dcc_with_retile_blit &&
surf->u.gfx9.swizzle_mode != ADDR_SW_64KB_S_X)
return false;
/* There are more constraints, but we always set
* INDEPENDENT_64B_BLOCKS = 1 and MAX_COMPRESSED_BLOCK_SIZE = 64B,
* which always works.
@ -1440,11 +1435,6 @@ static bool is_dcc_supported_by_DCN(const struct radeon_info *info,
return true;
case GFX10:
case GFX10_3:
/* Only support 64KB_R_X, so that we have only 1 variant of the retile shader. */
if (info->use_display_dcc_with_retile_blit &&
surf->u.gfx9.swizzle_mode != ADDR_SW_64KB_R_X)
return false;
/* DCN requires INDEPENDENT_128B_BLOCKS = 0 only on Navi1x. */
if (info->chip_class == GFX10 && surf->u.gfx9.color.dcc.independent_128B_blocks)
return false;