From c1bd1fcbd44e6c8118759f8ff3114ee7b67947f3 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 31 Jan 2023 09:19:46 +0000 Subject: [PATCH] GS: Clear Privilage registers on GS Reset via CSR --- pcsx2/GS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcsx2/GS.cpp b/pcsx2/GS.cpp index 81005c61b3..5840f7791b 100644 --- a/pcsx2/GS.cpp +++ b/pcsx2/GS.cpp @@ -85,6 +85,8 @@ static __fi void gsCSRwrite( const tGS_CSR& csr ) //Console.Warning( "csr.RESET" ); //gifUnit.Reset(true); // Don't think gif should be reset... gifUnit.gsSIGNAL.queued = false; + // Privilage registers also reset. + memset(PS2MEM_GS, 0, sizeof(PS2MEM_GS)); GetMTGS().SendSimplePacket(GS_RINGTYPE_RESET, 0, 0, 0); const u32 field = CSRreg.FIELD; CSRreg.Reset();