Skip to content

Commit 80ea68b

Browse files
authored
Merge pull request #13183 from Tilka/sync_on_fifo_reset
ProcessorInterface: sync GPU just before PI_FIFO_RESET
2 parents 375a990 + fbce737 commit 80ea68b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/Core/Core/HW/ProcessorInterface.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ void ProcessorInterfaceManager::RegisterMMIO(MMIO::Mapping* mmio, u32 base)
9898
{
9999
system.GetGPFifo().ResetGatherPipe();
100100

101+
// Assume that all bytes that made it into the GPU fifo did in fact execute
102+
// before this MMIO write takes effect.
103+
system.GetFifo().SyncGPUForRegisterAccess();
104+
101105
// Call Fifo::ResetVideoBuffer() from the video thread. Since that function
102106
// resets various pointers used by the video thread, we can't call it directly
103107
// from the CPU thread, so queue a task to do it instead. In single-core mode,

0 commit comments

Comments
 (0)