From bf6a0a035aa814a66da73506f0d85a27653f7345 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 2 May 2023 23:19:02 +0100 Subject: [PATCH] VIF-JIT: Ignore completely write protected vectors --- pcsx2/x86/newVif_Dynarec.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/x86/newVif_Dynarec.cpp b/pcsx2/x86/newVif_Dynarec.cpp index e570fbc0f..2874b68c9 100644 --- a/pcsx2/x86/newVif_Dynarec.cpp +++ b/pcsx2/x86/newVif_Dynarec.cpp @@ -122,6 +122,10 @@ void VifUnpackSSE_Dynarec::doMaskWrite(const xRegisterSSE& regX) const makeMergeMask(m3); makeMergeMask(m4); + // Everything is write protected, don't touch it, saveReg can't handle a mask of 0. + if (doMask && m4 == 0xf) + return; + if (doMask && m2) // Merge MaskRow { mVUmergeRegs(regX, xmmRow, m2);