Module: Mesa Branch: master Commit: c2271f66ea5aca0a8f1c3548602a35cd3ec38900 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2271f66ea5aca0a8f1c3548602a35cd3ec38900
Author: Samuel Pitoiset <[email protected]> Date: Fri Feb 26 13:55:55 2021 +0100 ac/rgp: report LDS size in CU mode on GFX10+ RGP expects that. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9303> --- src/amd/common/ac_rgp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/common/ac_rgp.c b/src/amd/common/ac_rgp.c index bc4007033f3..3b37612c417 100644 --- a/src/amd/common/ac_rgp.c +++ b/src/amd/common/ac_rgp.c @@ -454,6 +454,10 @@ static void ac_fill_sqtt_asic_info(struct radeon_info *rad_info, chunk->l2_cache_size = rad_info->l2_cache_size; chunk->l1_cache_size = rad_info->l1_cache_size; chunk->lds_size = rad_info->lds_size_per_workgroup; + if (rad_info->chip_class >= GFX10) { + /* RGP expects the LDS size in CU mode. */ + chunk->lds_size /= 2; + } strncpy(chunk->gpu_name, rad_info->name, SQTT_GPU_NAME_MAX_SIZE - 1); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
