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

Commit

Permalink
pica: Move mutex lock below tracing check on register write (#210)
Browse files Browse the repository at this point in the history
Co-authored-by: IndecisiveTurtle <[email protected]>
  • Loading branch information
PabloMK7 and raphaelthegreat authored Jul 21, 2024
1 parent 63450b6 commit d017955
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
Expand Up @@ -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});
}

Expand Down

0 comments on commit d017955

Please sign in to comment.