Fixed a small VIF FIFO error on my part, and clarified the clarification on vif direction ;p

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2882 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
refraction 2010-04-21 23:48:32 +00:00
parent 4582b281c1
commit 912a90a605
2 changed files with 3 additions and 3 deletions

View File

@ -259,7 +259,7 @@ _f void vif1STAT(u32 value) {
// As far as the GS is concerned, the transfer starts as soon as TRXREG is accessed, which is why fatal frame // As far as the GS is concerned, the transfer starts as soon as TRXREG is accessed, which is why fatal frame
// was expecting data, the GS should already be sending it over (buffering in the FIFO) // was expecting data, the GS should already be sending it over (buffering in the FIFO)
vif1Regs->stat.FQC = max((u32)16, vif1.GSLastTRXPOS); vif1Regs->stat.FQC = min((u32)16, vif1.GSLastTRXPOS);
//Console.Warning("Reversing VIF Transfer for %x QWC", vif1.GSLastTRXPOS); //Console.Warning("Reversing VIF Transfer for %x QWC", vif1.GSLastTRXPOS);
} }

View File

@ -29,7 +29,7 @@ __forceinline void vif1FLUSH()
g_vifCycles += (VU1.cycle - _cycles) * BIAS; g_vifCycles += (VU1.cycle - _cycles) * BIAS;
} }
void vif1TransferFromMemory() void vif1TransferToMemory()
{ {
int size; int size;
u64* pMem = (u64*)dmaGetAddr(vif1ch->madr); u64* pMem = (u64*)dmaGetAddr(vif1ch->madr);
@ -102,7 +102,7 @@ bool _VIF1chain()
// Clarification - this is TO memory mode, for some reason i used the other way round >.< // Clarification - this is TO memory mode, for some reason i used the other way round >.<
if (vif1.dmamode == VIF_NORMAL_TO_MEM_MODE) if (vif1.dmamode == VIF_NORMAL_TO_MEM_MODE)
{ {
vif1TransferFromMemory(); vif1TransferToMemory();
vif1.inprogress = 0; vif1.inprogress = 0;
return true; return true;
} }