ac/surface: disable DCC for 3D textures on gfx9 to improve performance

This improves Viewperf/Energy perf by 60% on Vega10.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28846>
This commit is contained in:
Marek Olšák
2024-04-15 03:29:15 -04:00
committed by Marge Bot
parent e05aec3fcd
commit 33f642aa09

View File

@@ -2018,6 +2018,7 @@ static int gfx9_compute_miptree(struct ac_addrlib *addrlib, const struct radeon_
use_dcc = ac_modifier_has_dcc(surf->modifier);
} else {
use_dcc = info->has_graphics && !(surf->flags & RADEON_SURF_DISABLE_DCC) && !compressed &&
!config->is_3d &&
is_dcc_supported_by_CB(info, in->swizzleMode) &&
(!in->flags.display ||
gfx9_is_dcc_supported_by_DCN(info, config, surf, !in->flags.metaRbUnaligned,