From cf993c2a3632a6371fc807da1ee6b945ccca5b9d Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Fri, 29 Jan 2016 21:03:02 +0000 Subject: [PATCH] Vif-Rec: Fix skip size calculation. (also a line ending issue, hope it doesn't mess it up lol) --- pcsx2/x86/newVif_Dynarec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/x86/newVif_Dynarec.cpp b/pcsx2/x86/newVif_Dynarec.cpp index fe1c2093bf..eb34a0b051 100644 --- a/pcsx2/x86/newVif_Dynarec.cpp +++ b/pcsx2/x86/newVif_Dynarec.cpp @@ -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; }