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:
@@ -357,7 +357,8 @@ ac_spm_map_counter(struct ac_spm *spm, struct ac_spm_block_select *block_sel,
|
||||
S_037008_PERF_MODE3(0);
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
/* Try to program the new counter slot. */
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Mark this 16-bit counter as used. */
|
||||
|
||||
Reference in New Issue
Block a user