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 <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25240>
This commit is contained in:
committed by
Marge Bot
parent
033e49995d
commit
3e8922d9f7
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user