newVif: minor changes...

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2451 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
cottonvibes 2010-01-18 05:33:06 +00:00
parent cbf25a4092
commit 804cae0b15
1 changed files with 6 additions and 4 deletions

View File

@ -157,6 +157,8 @@ int nVifUnpack(int idx, u8* data) {
}
static void setMasks(int idx, const VIFregisters& v) {
u32* row = idx ? g_vifmask.Row1 : g_vifmask.Row0;
u32* col = idx ? g_vifmask.Col1 : g_vifmask.Col0;
for (int i = 0; i < 16; i++) {
int m = (v.mask >> (i*2)) & 3;
switch (m) {
@ -165,15 +167,15 @@ static void setMasks(int idx, const VIFregisters& v) {
nVifMask[1][i/4][i%4] = 0;
nVifMask[2][i/4][i%4] = 0;
break;
case 1: // Row // todo: use g_vifmask
case 1: // Row
nVifMask[0][i/4][i%4] = 0;
nVifMask[1][i/4][i%4] = 0;
nVifMask[2][i/4][i%4] = ((u32*)&v.r0)[(i%4)*4];
nVifMask[2][i/4][i%4] = newVifDynaRec ? row[i%4] : ((u32*)&v.r0)[(i%4)*4];
break;
case 2: // Col // todo: use g_vifmask
case 2: // Col
nVifMask[0][i/4][i%4] = 0;
nVifMask[1][i/4][i%4] = 0;
nVifMask[2][i/4][i%4] = ((u32*)&v.c0)[(i/4)*4];
nVifMask[2][i/4][i%4] = newVifDynaRec ? col[i/4] : ((u32*)&v.c0)[(i/4)*4];
break;
case 3: // Write Protect
nVifMask[0][i/4][i%4] = 0;