From 44d7fcff399888d311f61772a53146d924ee5b62 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 29 May 2020 05:51:10 -0300 Subject: Implement FIFO semaphore (#1286) * Implement FIFO semaphore * New enum for FIFO semaphore operation --- Ryujinx.Graphics.Gpu/Engine/Methods.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs') diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs index d67ce2d1..5957bb62 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs @@ -104,6 +104,7 @@ namespace Ryujinx.Graphics.Gpu.Engine /// GPU state where the triggers will be registered public void RegisterCallbacksForFifo(GpuState state) { + state.RegisterCallback(MethodOffset.Semaphore, Semaphore); state.RegisterCallback(MethodOffset.FenceAction, FenceAction); state.RegisterCallback(MethodOffset.WaitForIdle, WaitForIdle); state.RegisterCallback(MethodOffset.SendMacroCodeData, SendMacroCodeData); @@ -430,7 +431,7 @@ namespace Ryujinx.Graphics.Gpu.Engine _context.Renderer.Pipeline.SetOrigin(origin); // The triangle rast flip flag only affects rasterization, the viewport is not flipped. - // Setting the origin mode to upper left on the host, however, not onlyy affects rasterization, + // Setting the origin mode to upper left on the host, however, not only affects rasterization, // but also flips the viewport. // We negate the effects of flipping the viewport by flipping it again using the viewport swizzle. if (origin == Origin.UpperLeft) -- cgit v1.2.3