forked from Mirror/Ryujinx
Fix shadow RAM affecting MME methods (#1168)
This commit is contained in:
parent
3dfa4232f8
commit
10a2b9dca3
1 changed files with 12 additions and 8 deletions
|
@ -77,6 +77,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
{
|
{
|
||||||
int value = meth.Argument;
|
int value = meth.Argument;
|
||||||
|
|
||||||
|
// Methods < 0x80 shouldn't be affected by shadow RAM at all.
|
||||||
|
if (meth.Method >= 0x80)
|
||||||
|
{
|
||||||
// TODO: Figure out what TrackWithFilter does, compared to Track.
|
// TODO: Figure out what TrackWithFilter does, compared to Track.
|
||||||
if (shadowCtrl == ShadowRamControl.Track ||
|
if (shadowCtrl == ShadowRamControl.Track ||
|
||||||
shadowCtrl == ShadowRamControl.TrackWithFilter)
|
shadowCtrl == ShadowRamControl.TrackWithFilter)
|
||||||
|
@ -87,6 +90,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
{
|
{
|
||||||
value = _shadow[meth.Method];
|
value = _shadow[meth.Method];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Register register = _registers[meth.Method];
|
Register register = _registers[meth.Method];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue