zzogl-pg: Use path->StepReg in the transfer code.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2811 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-04-03 10:53:42 +00:00
parent 1254cd22a5
commit 176c451008
2 changed files with 4 additions and 29 deletions

View File

@ -152,23 +152,10 @@ template<int index> void _GSgifTransfer(u32 *pMem, u32 size)
{ {
g_GIFPackedRegHandlers[path->GetReg()](pMem); g_GIFPackedRegHandlers[path->GetReg()](pMem);
path->reg += 4;
if (path->nreg == path->reg)
{
path->reg = 0;
if( path->nloop-- <= 1 )
{
size--;
pMem += 4;
break;
}
}
pMem += 4; pMem += 4;
size--; size--;
} }
while (size > 0); while (path->StepReg() && (size > 0));
break; break;
} }
@ -184,23 +171,10 @@ template<int index> void _GSgifTransfer(u32 *pMem, u32 size)
{ {
g_GIFRegHandlers[path->GetReg()](pMem); g_GIFRegHandlers[path->GetReg()](pMem);
path->reg += 4;
if (path->nreg == path->reg)
{
path->reg = 0;
if( path->nloop-- <= 1 )
{
size--;
pMem += 2;
break;
}
}
pMem += 2; pMem += 2;
size--; size--;
} }
while(size > 0); while(path->StepReg() && (size > 0));
if(size & 1) pMem += 2; if(size & 1) pMem += 2;

View File

@ -122,8 +122,9 @@ typedef struct
if (reg == nreg) if (reg == nreg)
{ {
reg = 0; reg = 0;
nloop--;
if (--nloop == 0) if (nloop == 0)
{ {
return false; return false;
} }