aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/Methods.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Methods.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs
index b7f4e1d9..bbfbf760 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs
@@ -65,6 +65,8 @@ namespace Ryujinx.Graphics.Gpu.Engine
state.RegisterCallback(MethodOffset.Dispatch, Dispatch);
+ state.RegisterCallback(MethodOffset.SyncpointAction, IncrementSyncpoint);
+
state.RegisterCallback(MethodOffset.CopyBuffer, CopyBuffer);
state.RegisterCallback(MethodOffset.CopyTexture, CopyTexture);
@@ -95,6 +97,19 @@ namespace Ryujinx.Graphics.Gpu.Engine
}
/// <summary>
+ /// Register callback for Fifo method calls that triggers an action on the GPFIFO.
+ /// </summary>
+ /// <param name="state">GPU state where the triggers will be registered</param>
+ public void RegisterCallbacksForFifo(GpuState state)
+ {
+ state.RegisterCallback(MethodOffset.FenceAction, FenceAction);
+ state.RegisterCallback(MethodOffset.WaitForIdle, WaitForIdle);
+ state.RegisterCallback(MethodOffset.SendMacroCodeData, SendMacroCodeData);
+ state.RegisterCallback(MethodOffset.BindMacro, BindMacro);
+ state.RegisterCallback(MethodOffset.SetMmeShadowRamControl, SetMmeShadowRamControl);
+ }
+
+ /// <summary>
/// Updates host state based on the current guest GPU state.
/// </summary>
/// <param name="state">Guest GPU state</param>