ac/gpu_info: num_cu = 4 and gfx11 enable dcc with retile

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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23454>
This commit is contained in:
Yogesh Mohan Marimuthu
2023-06-06 10:56:16 +05:30
committed by Marge Bot
parent add14d6cfb
commit 6f968f46fe

View File

@@ -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;
}
}