ProcessorInterface: Reset both GPFifo and Fifo on PI_FIFO_RESET

Fixes https://bugs.dolphin-emu.org/issues/12981
This commit is contained in:
Pokechu22 2022-07-22 15:07:19 -07:00
parent 97412553f9
commit 5bbdf7ae15

View File

@ -106,7 +106,10 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
// Used by GXAbortFrame // Used by GXAbortFrame
INFO_LOG_FMT(PROCESSORINTERFACE, "Wrote PI_FIFO_RESET: {:08x}", val); INFO_LOG_FMT(PROCESSORINTERFACE, "Wrote PI_FIFO_RESET: {:08x}", val);
if ((val & 1) != 0) if ((val & 1) != 0)
{
GPFifo::ResetGatherPipe();
Fifo::ResetVideoBuffer(); Fifo::ResetVideoBuffer();
}
})); }));
mmio->Register(base | PI_RESET_CODE, MMIO::ComplexRead<u32>([](u32) { mmio->Register(base | PI_RESET_CODE, MMIO::ComplexRead<u32>([](u32) {