mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 03:18:08 +02:00
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:
parent
59b01dc764
commit
f03b385d4b
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue