From 05feabdb49cf4547cd016855a778ff3b2de5e40e Mon Sep 17 00:00:00 2001 From: Marcos Vitali Date: Sun, 13 Feb 2011 02:21:11 +0000 Subject: - Reimplemented FifoReset in other way, only call to GPFifo::ResetGatherPipe() ResetVideoBuffer() in FIFO_RW_DISTANCE_LO when this is equal to "0" - In the Command Processor Control Register when GPReadEnable is OFF, wait until the fifo lopp finish with thi actual 32 bytes block. This is necessary to have Safe Disabble GP Read in this way AbortFrame is performed by the software, beside this can help to have accurate GPReadEnable OFF. Please test Metroid Prime 1/2, Guilty Gear XX, X men gc, SMG, and shuffle you can test Harry Potter Prince for WII. :) PD: The fifo code need a clean very soon. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7158 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/Fifo.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Source/Core/VideoCommon/Src/Fifo.cpp') diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp index e8391c5f2f..08112b2986 100644 --- a/Source/Core/VideoCommon/Src/Fifo.cpp +++ b/Source/Core/VideoCommon/Src/Fifo.cpp @@ -33,7 +33,6 @@ namespace { static volatile bool fifoStateRun = false; static volatile bool EmuRunning = false; -static volatile bool isFifoProcesingData = false; static u8 *videoBuffer; // STATE_TO_SAVE static int size = 0; @@ -96,10 +95,6 @@ void Fifo_RunLoop(bool run) EmuRunning = run; } -bool IsFifoProcesingData() -{ - return isFifoProcesingData; -} // Description: Fifo_EnterLoop() sends data through this function. void Fifo_SendFifoData(u8* _uData, u32 len) @@ -148,7 +143,7 @@ void Fifo_EnterLoop() while (!CommandProcessor::interruptWaiting && _fifo.bFF_GPReadEnable && _fifo.CPReadWriteDistance && (!AtBreakpoint() || CommandProcessor::OnOverflow)) { - isFifoProcesingData = true; + _fifo.isFifoProcesingData = true; CommandProcessor::isPossibleWaitingSetDrawDone = _fifo.bFF_GPLinkEnable; if (!fifoStateRun) break; @@ -188,7 +183,7 @@ void Fifo_EnterLoop() CommandProcessor::isPossibleWaitingSetDrawDone = false; } - isFifoProcesingData = false; + _fifo.isFifoProcesingData = false; CommandProcessor::SetFifoIdleFromVideoPlugin(); -- cgit v1.2.3