diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-08-02 22:36:57 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-03 03:36:57 +0200 |
| commit | 60db4c353099e8656a330ede03fdbe57a421fa47 (patch) | |
| tree | 0b04b6fff7c892b7ae9f1d417293d4f81b27a60a /Ryujinx.Graphics.Gpu/State | |
| parent | c11855565e0ce2bac228610cbaa92c8c7f082c70 (diff) | |
Implement a Macro JIT (#1445)
* Implement a Macro JIT
* Nit: space
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/State/GpuState.cs | 10 |
1 files changed, 8 insertions, 2 deletions
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 @@ -33,6 +33,11 @@ namespace Ryujinx.Graphics.Gpu.State private readonly Register[] _registers; /// <summary> + /// Gets or sets the shadow ram control used for this sub-channel. + /// </summary> + public ShadowRamControl ShadowRamControl { get; set; } + + /// <summary> /// Creates a new instance of the GPU state. /// </summary> public GpuState() @@ -72,14 +77,15 @@ namespace Ryujinx.Graphics.Gpu.State /// Calls a GPU method, using this state. /// </summary> /// <param name="meth">The GPU method to be called</param> - /// <param name="shadowCtrl">Shadow RAM control register value</param> - 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) |
