mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
5adc1bdecd
The game calls GXSetDrawDone and then switches the GP fifo without first waiting for the draw done interrupt to arrive. Before e96960e2a678f072f316173c80650897013fb99c, Dolphin would not execute the draw done command and potentially also skip other commands in the old GP fifo. Since that commit, Dolphin executes the remaining commands on the old GP fifo just before disabling reads for switching, but because PixelEngineManager::RaiseEvent() enforces a minimum delay of 500 cycles for the draw done interrupt, it arrives after the game has switched to the new GP fifo which seems to trigger the deadlock. This patch replaces the call to GXSetDrawDone by a call to GXDrawDone which does the same but also waits for the interrupt.