mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
ac/spm: fix determing the SPM wire
One SPM wire holds two 16-bit counters.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: e928f475cc ("ac: add initial SPM support")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13758>
This commit is contained in:
parent
e94a899c0e
commit
11c6a32759
1 changed files with 2 additions and 2 deletions
|
|
@ -133,8 +133,8 @@ ac_spm_map_counter(struct ac_spm_trace_data *spm_trace,
|
|||
/* Determine if the counter is even or odd. */
|
||||
counter->is_even = !(index % 2);
|
||||
|
||||
/* Determine the SPM wire (lower 16-bits for even, upper for odd). */
|
||||
*spm_wire = !counter->is_even + i;
|
||||
/* Determine the SPM wire (one wire holds two 16-bit counters). */
|
||||
*spm_wire = !!(index >= 2);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue