Another minor modification for reverse FIFO

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2975 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
refraction 2010-05-09 19:41:09 +00:00
parent a8b7c03845
commit b552c1fdc2
1 changed files with 1 additions and 4 deletions

View File

@ -111,14 +111,11 @@ void vif1TransferToMemory()
{ {
vif1.GSLastDownloadSize -= vif1ch->qwc; vif1.GSLastDownloadSize -= vif1ch->qwc;
vif1Regs->stat.FQC = min((u32)16, vif1.GSLastDownloadSize); vif1Regs->stat.FQC = min((u32)16, vif1.GSLastDownloadSize);
if (vif1.GSLastDownloadSize <= 16)
gifRegs->stat.OPH = false;
} }
else else
{ {
vif1Regs->stat.FQC = 0; vif1Regs->stat.FQC = 0;
vif1.GSLastDownloadSize = 0; vif1.GSLastDownloadSize = 0;
gifRegs->stat.OPH = false;
} }
vif1ch->qwc = 0; vif1ch->qwc = 0;
@ -334,7 +331,7 @@ __forceinline void vif1Interrupt()
#endif #endif
vif1Regs->stat.VPS = VPS_IDLE; //Vif goes idle as the stall happened between commands; vif1Regs->stat.VPS = VPS_IDLE; //Vif goes idle as the stall happened between commands;
if((vif1ch->chcr.DIR == VIF_NORMAL_TO_MEM_MODE) && (vif1Regs->stat.FQC == 0)) if((vif1ch->chcr.DIR == VIF_NORMAL_TO_MEM_MODE) && vif1.GSLastDownloadSize <= 16)
{ //Reverse fifo has finished and nothing is left, so lets clear the outputting flag { //Reverse fifo has finished and nothing is left, so lets clear the outputting flag
gifRegs->stat.OPH = false; gifRegs->stat.OPH = false;
} }