radeonsi: Fix perfcounter start event in si_pc_emit_start
The original typo caused performance counters to send STOP events
instead of START, leading to incorrect profiling data.
Fixes: 1a1138817c ("radeonsi: add a new PM4 helper radeon_event_write")
Signed-off-by: Trigger Huang <Trigger.Huang@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34236>
This commit is contained in:
@@ -114,7 +114,7 @@ static void si_pc_emit_start(struct si_context *sctx, struct si_resource *buffer
|
||||
radeon_begin(cs);
|
||||
radeon_set_uconfig_reg(R_036020_CP_PERFMON_CNTL,
|
||||
S_036020_PERFMON_STATE(V_036020_CP_PERFMON_STATE_DISABLE_AND_RESET));
|
||||
radeon_event_write(V_028A90_PERFCOUNTER_STOP);
|
||||
radeon_event_write(V_028A90_PERFCOUNTER_START);
|
||||
radeon_set_uconfig_reg(R_036020_CP_PERFMON_CNTL,
|
||||
S_036020_PERFMON_STATE(V_036020_CP_PERFMON_STATE_START_COUNTING));
|
||||
radeon_end();
|
||||
|
||||
Reference in New Issue
Block a user