ac/rgp: report LDS size in CU mode on GFX10+

RGP expects that.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9303>
This commit is contained in:
Samuel Pitoiset 2021-02-26 13:55:55 +01:00
parent ceded1d0a2
commit c2271f66ea
1 changed files with 4 additions and 0 deletions

View File

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