mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
intel/perf: fix perf equation subslice mask generation for gfx12+
v2: Fix comment change (Marcin)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10015>
(cherry picked from commit 67619d8153)
This commit is contained in:
parent
f4fe896423
commit
198f6463ee
2 changed files with 4 additions and 4 deletions
|
|
@ -1138,7 +1138,7 @@
|
|||
"description": "intel/perf: fix perf equation subslice mask generation for gfx12+",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -364,15 +364,15 @@ compute_topology_builtins(struct intel_perf_config *perf,
|
|||
perf->sys_vars.eu_threads_count = devinfo->num_thread_per_eu;
|
||||
|
||||
/* The subslice mask builtin contains bits for all slices. Prior to Gfx11
|
||||
* it had groups of 3bits for each slice, on Gfx11 it's 8bits for each
|
||||
* slice.
|
||||
* it had groups of 3bits for each slice, on Gfx11 and above it's 8bits for
|
||||
* each slice.
|
||||
*
|
||||
* Ideally equations would be updated to have a slice/subslice query
|
||||
* function/operator.
|
||||
*/
|
||||
perf->sys_vars.subslice_mask = 0;
|
||||
|
||||
int bits_per_subslice = devinfo->ver == 11 ? 8 : 3;
|
||||
int bits_per_subslice = devinfo->ver >= 11 ? 8 : 3;
|
||||
|
||||
for (int s = 0; s < util_last_bit(devinfo->slice_masks); s++) {
|
||||
for (int ss = 0; ss < (devinfo->subslice_slice_stride * 8); ss++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue