Optimized FIFO gather a tiny bit.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5696 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2010-06-14 20:08:31 +00:00
parent 9a76be6edc
commit c1ca3ae96c
1 changed files with 6 additions and 3 deletions

View File

@ -44,6 +44,8 @@ u8 GC_ALIGNED32(m_gatherPipe[GATHER_PIPE_SIZE*16]); //more room, for the fastmod
// pipe counter // pipe counter
u32 m_gatherPipeCount = 0; u32 m_gatherPipeCount = 0;
Common::TVideo_GatherPipeBursted m_GatherPipeBursted = NULL;
void DoState(PointerWrap &p) void DoState(PointerWrap &p)
{ {
p.Do(m_gatherPipe); p.Do(m_gatherPipe);
@ -53,6 +55,7 @@ void DoState(PointerWrap &p)
void Init() void Init()
{ {
ResetGatherPipe(); ResetGatherPipe();
m_GatherPipeBursted = CPluginManager::GetInstance().GetVideo()->Video_GatherPipeBursted;
} }
bool IsEmpty() bool IsEmpty()
@ -89,8 +92,8 @@ void STACKALIGN CheckGatherPipe()
ProcessorInterface::Fifo_CPUWritePointer += GATHER_PIPE_SIZE; ProcessorInterface::Fifo_CPUWritePointer += GATHER_PIPE_SIZE;
} }
// TODO store video plugin pointer // Call pre-fetched pointer
CPluginManager::GetInstance().GetVideo()->Video_GatherPipeBursted(); m_GatherPipeBursted();
} }
// move back the spill bytes // move back the spill bytes