From ec41e24228a0f4d8966089cf7fc681a519802ada Mon Sep 17 00:00:00 2001 From: refraction Date: Sat, 2 Apr 2011 19:23:20 +0000 Subject: [PATCH] Small unpack bug with interpreted/partial transfers in fill mode (probably REALLY uncommon). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4526 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/x86/newVif_Unpack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/x86/newVif_Unpack.cpp b/pcsx2/x86/newVif_Unpack.cpp index 713ca0ee61..e6920dd681 100644 --- a/pcsx2/x86/newVif_Unpack.cpp +++ b/pcsx2/x86/newVif_Unpack.cpp @@ -149,7 +149,7 @@ _vifT int nVifUnpack(const u8* data) { ++vif.cl; if (isFill) { - if (vif.cl < vifRegs.cycle.cl) size -= vSize; + if (vif.cl <= vifRegs.cycle.cl) size -= vSize; else if (vif.cl == vifRegs.cycle.wl) vif.cl = 0; } else @@ -262,7 +262,7 @@ __ri void __fastcall _nVifUnpackLoop(const u8* data) { if (isFill) { //DevCon.WriteLn("isFill!"); - if (vif.cl < vifRegs.cycle.cl) data += vSize; + if (vif.cl <= vifRegs.cycle.cl) data += vSize; else if (vif.cl == vifRegs.cycle.wl) vif.cl = 0; } else