diff --git a/src/amd/common/ac_spm.c b/src/amd/common/ac_spm.c index 39cc9c80ee9..d15b60eb0c4 100644 --- a/src/amd/common/ac_spm.c +++ b/src/amd/common/ac_spm.c @@ -325,7 +325,7 @@ ac_spm_add_counter(const struct radeon_info *info, /* 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; }