This currently does nothing because only the first instance is used,
but this will be needed for multi-instance.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25240>
/* Determine the counter segment type. */
if (block->b->b->flags & AC_PC_BLOCK_SE) {
- counter->segment_type = AC_SPM_SEGMENT_TYPE_SE0; // XXX
+ counter->segment_type = instance_mapping.se_index;
} else {
counter->segment_type = AC_SPM_SEGMENT_TYPE_GLOBAL;
}