SPU2-X: Flag effect area for updating on effect area register writes rather than core attributes change. (For change in testing. Committing separately for regression testing purposes.)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4744 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
sudonim1@gmail.com 2011-06-15 00:57:04 +00:00
parent 61a7804b90
commit 94d6aaf4bb
1 changed files with 3 additions and 4 deletions

View File

@ -899,7 +899,6 @@ static void __fastcall RegWrite_Core( u16 value )
case REG_C_ATTR: case REG_C_ATTR:
{ {
bool fxenable = thiscore.FxEnable;
bool irqe = thiscore.IRQEnable; bool irqe = thiscore.IRQEnable;
int bit0 = thiscore.AttrBit0; int bit0 = thiscore.AttrBit0;
u8 oldDmaMode = thiscore.DmaMode; u8 oldDmaMode = thiscore.DmaMode;
@ -915,9 +914,6 @@ static void __fastcall RegWrite_Core( u16 value )
thiscore.CoreEnabled=(value>>15) & 0x01; //1 bit thiscore.CoreEnabled=(value>>15) & 0x01; //1 bit
thiscore.Regs.ATTR =value&0x7fff; thiscore.Regs.ATTR =value&0x7fff;
if (!fxenable && thiscore.FxEnable)
thiscore.RevBuffers.NeedsUpdated = true;
if(oldDmaMode != thiscore.DmaMode) if(oldDmaMode != thiscore.DmaMode)
{ {
// FIXME... maybe: if this mode was cleared in the middle of a DMA, should we interrupt it? // FIXME... maybe: if this mode was cleared in the middle of a DMA, should we interrupt it?
@ -1089,6 +1085,7 @@ static void __fastcall RegWrite_Core( u16 value )
{ {
SetHiWord( thiscore.EffectsStartA, value ); SetHiWord( thiscore.EffectsStartA, value );
thiscore.ReverbX = 0; thiscore.ReverbX = 0;
thiscore.RevBuffers.NeedsUpdated = true;
} }
break; break;
@ -1097,6 +1094,7 @@ static void __fastcall RegWrite_Core( u16 value )
{ {
SetLoWord( thiscore.EffectsStartA, value ); SetLoWord( thiscore.EffectsStartA, value );
thiscore.ReverbX = 0; thiscore.ReverbX = 0;
thiscore.RevBuffers.NeedsUpdated = true;
} }
break; break;
@ -1105,6 +1103,7 @@ static void __fastcall RegWrite_Core( u16 value )
{ {
thiscore.EffectsEndA = ((u32)value<<16) | 0xFFFF; thiscore.EffectsEndA = ((u32)value<<16) | 0xFFFF;
thiscore.ReverbX = 0; thiscore.ReverbX = 0;
thiscore.RevBuffers.NeedsUpdated = true;
} }
break; break;