mirror of https://github.com/PCSX2/pcsx2.git
Vif-Rec: Fix skip size calculation.
(also a line ending issue, hope it doesn't mess it up lol)
This commit is contained in:
parent
2662809900
commit
cf993c2a36
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue