From c2abf092e947735f112bdc38f9919a61b431e381 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Fri, 26 Apr 2019 21:55:22 -0500 Subject: [PATCH] VideoCommon: Do not reset the gather pipe (WPAR buffer) as this does not reflect what actually happens on real hardware. On hardware, there's no way for the GPU to signal to reset the WPAR buffer. Instead, the WPAR buffer will be reset automatically upon receiving 32 bytes or when spr[WPAR] is written --- Source/Core/VideoCommon/CommandProcessor.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Source/Core/VideoCommon/CommandProcessor.cpp b/Source/Core/VideoCommon/CommandProcessor.cpp index 10793bfdd3..e16c9bccc4 100644 --- a/Source/Core/VideoCommon/CommandProcessor.cpp +++ b/Source/Core/VideoCommon/CommandProcessor.cpp @@ -276,15 +276,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base) MMIO::ComplexWrite([WMASK_HI_RESTRICT](u32, u16 val) { WriteHigh(fifo.CPReadWriteDistance, val & WMASK_HI_RESTRICT); Fifo::SyncGPU(Fifo::SyncGPUReason::Other); - if (fifo.CPReadWriteDistance == 0) - { - GPFifo::ResetGatherPipe(); - Fifo::ResetVideoBuffer(); - } - else - { - Fifo::ResetVideoBuffer(); - } + Fifo::ResetVideoBuffer(); Fifo::RunGpu(); })); mmio->Register(