From c7ae0eb0d12ae828d02188ca611391c142be9762 Mon Sep 17 00:00:00 2001 From: Marcos Vitali Date: Thu, 17 Feb 2011 04:25:21 +0000 Subject: Big Fifo Commit Part2: Now the fifo is more stable than my first commit, so is time... - ReImplementing Single Core Mode like Dual Core Mode Style. - Stage 1: My goal is, we have the Fifo, CommandProccessor code the more clear, maintenible and documented possible. When I quit dolphin I want any developer can continue with the work only reading the code. * Big Refactoring: A lot of functions was changed the names, and modularized. Now the FifoLoop and CatchUpGPU does not exist, was replaced by RunGpu() and RunGpuLoop(). The general idea is modeling the code like the real HW. The fifo is only a buffer where the Write Gather Pipe write the commands and from the Graphic Processor read these. * Big Clean UP a lot of obsolete code and comments was deleted, like DcFakeWachDog, "Fifo very soon hack", etc. In the stage 2, I will refactoring more code doing emphasis in the division of CommandProcessor, Fifo, Gpu Emulation. Beside I will comment all functions and variables in the code (Don't worry I will ask for English help for this part ;) ) Please test a lot SC mode and DC mode :) Thank you so much for testing always and the patience. I don't like broke your favorite game but... you must believe me this part is very sensible, I only try to contribute for have a better and stable dolphin emulator. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7185 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/OpcodeDecoding.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/VideoCommon/Src/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp b/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp index f30bfd0b41..bddc31ef40 100644 --- a/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp @@ -90,8 +90,8 @@ DataReadU32xNfunc DataReadU32xFuncs[16] = { DataReadU32xN<16> }; -extern u8* FAKE_GetFifoStartPtr(); -extern u8* FAKE_GetFifoEndPtr(); +extern u8* GetVideoBufferStartPtr(); +extern u8* GetVideoBufferEndPtr(); static void Decode(); @@ -135,7 +135,7 @@ void ExecuteDisplayList(u32 address, u32 size) bool FifoCommandRunnable() { - u32 buffer_size = (u32)(FAKE_GetFifoEndPtr() - g_pVideoData); + u32 buffer_size = (u32)(GetVideoBufferEndPtr() - g_pVideoData); if (buffer_size == 0) return false; // can't peek @@ -420,7 +420,7 @@ static void DecodeSemiNop() void OpcodeDecoder_Init() { - g_pVideoData = FAKE_GetFifoStartPtr(); + g_pVideoData = GetVideoBufferStartPtr(); #if _M_SSE >= 0x301 if (cpu_info.bSSSE3) -- cgit v1.2.3