1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-30 21:22:03 +00:00

Fix shadow RAM affecting MME methods (#1168)

This commit is contained in:
gdkchan 2020-04-26 19:22:18 -03:00 committed by GitHub
parent 3dfa4232f8
commit 10a2b9dca3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,9 @@ namespace Ryujinx.Graphics.Gpu.State
{
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.
if (shadowCtrl == ShadowRamControl.Track ||
shadowCtrl == ShadowRamControl.TrackWithFilter)
@ -87,6 +90,7 @@ namespace Ryujinx.Graphics.Gpu.State
{
value = _shadow[meth.Method];
}
}
Register register = _registers[meth.Method];