From 6f968f46fe56c7e22086687886844413b17da89a Mon Sep 17 00:00:00 2001 From: Yogesh Mohan Marimuthu Date: Tue, 6 Jun 2023 10:56:16 +0530 Subject: [PATCH] ac/gpu_info: num_cu = 4 and gfx11 enable dcc with retile MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit With num_cu = 4 in gfx11 measured power for idle, video playback and observed power savings, hence enable dcc with retile for gfx11 with num_cu >= 4. Reviewed-by: Marek Olšák Part-of: --- src/amd/common/ac_gpu_info.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 0954cfc..791fe8a 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -1289,8 +1289,13 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info) /* Displayable DCC with retiling is known to increase power consumption on Raphael * and Mendocino, so disable it on the smallest APUs. We need a proof that * displayable DCC doesn't regress bigger chips in the same way. + * With num_cu = 4 in gfx11 measured power for idle, video playback and observed + * power savings, hence enable dcc with retile for gfx11 with num_cu >= 4. */ - info->use_display_dcc_with_retile_blit = info->num_cu > 4; + if (info->gfx_level >= GFX11) + info->use_display_dcc_with_retile_blit = info->num_cu >= 4; + else + info->use_display_dcc_with_retile_blit = info->num_cu > 4; } } -- 2.7.4