mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
intel/perf: Use intel_device_info functions to compute subslice and eu totals
Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19359>
This commit is contained in:
parent
dc4d7d7b0f
commit
bb9f66800c
1 changed files with 2 additions and 7 deletions
|
|
@ -368,13 +368,8 @@ compute_topology_builtins(struct intel_perf_config *perf)
|
|||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < sizeof(devinfo->subslice_masks[i]); i++) {
|
||||
perf->sys_vars.n_eu_sub_slices +=
|
||||
util_bitcount(devinfo->subslice_masks[i]);
|
||||
}
|
||||
|
||||
for (int i = 0; i < sizeof(devinfo->eu_masks); i++)
|
||||
perf->sys_vars.n_eus += util_bitcount(devinfo->eu_masks[i]);
|
||||
perf->sys_vars.n_eu_sub_slices = intel_device_info_subslice_total(devinfo);
|
||||
perf->sys_vars.n_eus = intel_device_info_eu_total(devinfo);
|
||||
|
||||
/* The subslice mask builtin contains bits for all slices. Prior to Gfx11
|
||||
* it had groups of 3bits for each slice, on Gfx11 and above it's 8bits for
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue