GS: Correct GSIMR/GSCSR reg init, regression from previous release

This commit is contained in:
refractionpcsx2 2023-01-31 16:55:13 +00:00
parent 08bae3da2e
commit 0e3397239d
3 changed files with 3 additions and 1 deletions

View File

@ -84,6 +84,8 @@ static __fi void gsCSRwrite( const tGS_CSR& csr )
gifUnit.gsFINISH.gsFINISHFired = true;
// Privilage registers also reset.
memzero(g_RealGSMem);
GSIMR.reset();
CSRreg.Reset();
gsVideoMode = GS_VideoMode::Uninitialized;
UpdateVSyncRate();
GetMTGS().SendSimplePacket(GS_RINGTYPE_RESET, 0, 0, 0);

View File

@ -153,7 +153,6 @@ union tGS_CSR
void Reset()
{
_u64 = 0;
FIFO = CSR_FIFO_EMPTY;
REV = 0x1B; // GS Revision
ID = 0x55; // GS ID

View File

@ -85,6 +85,7 @@ bool Gif_HandlerAD(u8* pMem)
{ // FINISH
GUNIT_WARN("GIF Handler - FINISH");
CSRreg.FINISH = true;
gifUnit.gsFINISH.gsFINISHFired = false;
}
else if (reg == GIF_A_D_REG_LABEL)
{ // LABEL