2020-04-18 18:25:57 -07:00
|
|
|
|
using Ryujinx.Graphics.Gpu.State;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gpu.Engine
|
|
|
|
|
{
|
|
|
|
|
partial class Methods
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Performs an incrementation on a syncpoint.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="state">Current GPU state</param>
|
|
|
|
|
/// <param name="argument">Method call argument</param>
|
|
|
|
|
public void IncrementSyncpoint(GpuState state, int argument)
|
|
|
|
|
{
|
|
|
|
|
uint syncpointId = (uint)(argument) & 0xFFFF;
|
|
|
|
|
|
2021-01-17 12:08:06 -08:00
|
|
|
|
_context.CreateHostSyncIfNeeded();
|
2020-05-03 19:24:59 -07:00
|
|
|
|
_context.Renderer.UpdateCounters(); // Poll the query counters, the game may want an updated result.
|
2020-04-18 18:25:57 -07:00
|
|
|
|
_context.Synchronization.IncrementSyncpoint(syncpointId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|