summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/CommandProcessor.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2019-04-26 21:55:22 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2019-04-26 22:20:53 -0500
commitc2abf092e947735f112bdc38f9919a61b431e381 (patch)
tree1d8937b8d7cb3785db14d16e2ec87591408e38aa /Source/Core/VideoCommon/CommandProcessor.cpp
parent59c0e51f5b84874dca2cbecfe750e3f1de66405d (diff)
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
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.cpp')
-rw-r--r--Source/Core/VideoCommon/CommandProcessor.cpp10
1 files changed, 1 insertions, 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<u16>([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(