mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
ac/spm: fix programming more than one counter slot
Some blocks have two or more SPM counters and they should be used when more than 4 counters are programmed (ie. 16-bit per counter). Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39013>
This commit is contained in:
parent
e5a041ee1c
commit
7da6fe6a00
1 changed files with 2 additions and 1 deletions
|
|
@ -357,7 +357,8 @@ ac_spm_map_counter(struct ac_spm *spm, struct ac_spm_block_select *block_sel,
|
||||||
S_037008_PERF_MODE3(0);
|
S_037008_PERF_MODE3(0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
/* Try to program the new counter slot. */
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mark this 16-bit counter as used. */
|
/* Mark this 16-bit counter as used. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue