From 3e8922d9f73383db27ec138d32760155b86b8801 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 14 Sep 2023 13:43:53 +0200 Subject: [PATCH] ac/spm: select correct segment type for per-SE blocks This currently does nothing because only the first instance is used, but this will be needed for multi-instance. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/common/ac_spm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/common/ac_spm.c b/src/amd/common/ac_spm.c index 39cc9c8..d15b60e 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; } -- 2.7.4