From 33f642aa09a82a3a7ba9b6b583d615bfa28f78c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 15 Apr 2024 03:29:15 -0400 Subject: [PATCH] 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 Part-of: --- src/amd/common/ac_surface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index f9acfd46b68..2caee2f50e3 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -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,