Implement a fast path for I2M transfers (#2467)

This commit is contained in:
gdkchan 2021-07-12 16:48:57 -03:00 committed by GitHub
parent 9b08abc644
commit 04dce402ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 88 additions and 3 deletions

View file

@ -68,6 +68,15 @@ namespace Ryujinx.Graphics.Gpu.Engine.Compute
_i2mClass.LaunchDma(ref Unsafe.As<ComputeClassState, InlineToMemoryClassState>(ref _state.State), argument);
}
/// <summary>
/// Pushes a block of data to the Inline-to-Memory engine.
/// </summary>
/// <param name="data">Data to push</param>
public void LoadInlineData(ReadOnlySpan<int> data)
{
_i2mClass.LoadInlineData(data);
}
/// <summary>
/// Pushes a word of data to the Inline-to-Memory engine.
/// </summary>