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:
Samuel Pitoiset 2025-12-17 10:39:37 +01:00
parent e5a041ee1c
commit 7da6fe6a00

View file

@ -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. */