From 60db4c353099e8656a330ede03fdbe57a421fa47 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 2 Aug 2020 22:36:57 -0300 Subject: Implement a Macro JIT (#1445) * Implement a Macro JIT * Nit: space --- Ryujinx.Graphics.Gpu/State/GpuState.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/State') diff --git a/Ryujinx.Graphics.Gpu/State/GpuState.cs b/Ryujinx.Graphics.Gpu/State/GpuState.cs index 67bcb291..4b93dd45 100644 --- a/Ryujinx.Graphics.Gpu/State/GpuState.cs +++ b/Ryujinx.Graphics.Gpu/State/GpuState.cs @@ -32,6 +32,11 @@ namespace Ryujinx.Graphics.Gpu.State private readonly Register[] _registers; + /// + /// Gets or sets the shadow ram control used for this sub-channel. + /// + public ShadowRamControl ShadowRamControl { get; set; } + /// /// Creates a new instance of the GPU state. /// @@ -72,14 +77,15 @@ namespace Ryujinx.Graphics.Gpu.State /// Calls a GPU method, using this state. /// /// The GPU method to be called - /// Shadow RAM control register value - public void CallMethod(MethodParams meth, ShadowRamControl shadowCtrl) + public void CallMethod(MethodParams meth) { int value = meth.Argument; // Methods < 0x80 shouldn't be affected by shadow RAM at all. if (meth.Method >= 0x80) { + ShadowRamControl shadowCtrl = ShadowRamControl; + // TODO: Figure out what TrackWithFilter does, compared to Track. if (shadowCtrl == ShadowRamControl.Track || shadowCtrl == ShadowRamControl.TrackWithFilter) -- cgit v1.2.3