Vif-Rec: Fix skip size calculation.

(also a line ending issue, hope it doesn't mess it up lol)
This commit is contained in:
refractionpcsx2 2016-01-29 21:03:02 +00:00
parent 2662809900
commit cf993c2a36
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ _vifT static __fi u8* dVifsetVUptr(uint cl, uint wl, bool isFill) {
//if (wl == 256) isFill = true;
if (!isFill) {
uint skipSize = (cl - wl) * 16;
uint blocks = v.block.num / wl;
uint blocks = (v.block.num + (wl-1)) / wl; //Need to round up num's to calculate skip size correctly.
length += (blocks-1) * skipSize;
}