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:
parent
ceded1d0a2
commit
c2271f66ea
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue