ac/spm: initialize and set instance mapping for counters
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 13 Sep 2023 13:41:28 +0000 (15:41 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 14 Sep 2023 14:17:19 +0000 (14:17 +0000)
commit84390c5c98e8369c81a37b4c88b0a2acc5f27a34
treeb30c0b7ac76067a88c51f3c5c317fcc5b9f2aa0d
parent0864a7dfa9412d2261850811705d50619a96612f
ac/spm: initialize and set instance mapping for counters

This configures global, per-SE and per-SA counters with different
indexes. This is still unused because only for the first instance is
used by RADV/RadeonSI, but this will be changed.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25211>
src/amd/common/ac_spm.c