Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pica: Move mutex lock below tracing check on register write
Browse files Browse the repository at this point in the history
Co-authored-by: IndecisiveTurtle <[email protected]>
PabloMK7 and raphaelthegreat committed Jul 21, 2024
1 parent 63450b6 commit e1f7722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_core/debug_utils/debug_utils.cpp
Original file line number Diff line number Diff line change
@@ -272,11 +272,11 @@ void StartPicaTracing() {
}

void OnPicaRegWrite(u16 cmd_id, u16 mask, u32 value) {
std::lock_guard lock(pica_trace_mutex);

if (!g_is_pica_tracing)
return;

std::lock_guard lock(pica_trace_mutex);

pica_trace->writes.push_back(PicaTrace::Write{cmd_id, mask, value});
}

0 comments on commit e1f7722

Please sign in to comment.