From cddc48935ccdc8bfe37443707fd9052d203fbe95 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sun, 29 Nov 2026 19:48:22 +0000 Subject: [PATCH] Vif-JIT: Correct mask reg base offset --- pcsx2/x86/Vif_UnpackSSE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/x86/Vif_UnpackSSE.cpp b/pcsx2/x86/Vif_UnpackSSE.cpp index 09b07350f1..c796965ab1 100644 --- a/pcsx2/x86/Vif_UnpackSSE.cpp +++ b/pcsx2/x86/Vif_UnpackSSE.cpp @@ -332,7 +332,7 @@ void VifUnpackSSE_Simple::doMaskWrite(const xRegisterSSE& regX) const { xMOVAPS(xmm3, ptr[dstIndirect]); const int offX = std::min(curCycle, 3); - sptr base = reinterpret_cast(nVifMask[2]); + sptr base = reinterpret_cast(nVifMask); xLoadFarAddr(rax, nVifMask); xPAND(regX, ptr128[rax + (reinterpret_cast(nVifMask[0][offX]) - base)]); xPAND(xmm3, ptr128[rax + (reinterpret_cast(nVifMask[1][offX]) - base)]);