VIF: Slightly optimise when Row/Col are written to MTVU

This commit is contained in:
refractionpcsx2 2020-12-28 19:01:17 +00:00
parent e8c91f0537
commit c9a5443539
1 changed files with 4 additions and 2 deletions

View File

@ -537,7 +537,8 @@ vifOp(vifCode_STCol) {
} }
pass2 { pass2 {
u32 ret = _vifCode_STColRow<idx>(data, &vifX.MaskCol._u32[vifX.tag.addr]); u32 ret = _vifCode_STColRow<idx>(data, &vifX.MaskCol._u32[vifX.tag.addr]);
if (idx) { vu1Thread.WriteCol(vifX); } if (idx && vifX.tag.size == 0)
vu1Thread.WriteCol(vifX);
return ret; return ret;
} }
pass3 { VifCodeLog("STCol"); } pass3 { VifCodeLog("STCol"); }
@ -554,7 +555,8 @@ vifOp(vifCode_STRow) {
} }
pass2 { pass2 {
u32 ret = _vifCode_STColRow<idx>(data, &vifX.MaskRow._u32[vifX.tag.addr]); u32 ret = _vifCode_STColRow<idx>(data, &vifX.MaskRow._u32[vifX.tag.addr]);
if (idx) { vu1Thread.WriteRow(vifX); } if (idx && vifX.tag.size == 0)
vu1Thread.WriteRow(vifX);
return ret; return ret;
} }
pass3 { VifCodeLog("STRow"); } pass3 { VifCodeLog("STRow"); }