Implement FIFO semaphore (#1286)

* Implement FIFO semaphore

* New enum for FIFO semaphore operation
This commit is contained in:
gdkchan 2020-05-29 05:51:10 -03:00 committed by GitHub
parent 12cfaf56f0
commit 44d7fcff39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 50 additions and 14 deletions

View file

@ -0,0 +1,9 @@
namespace Ryujinx.Graphics.Gpu.State
{
enum FifoSemaphoreOperation
{
Counter = 0,
Acquire = 1,
Release = 2
}
}

View file

@ -8,7 +8,8 @@ namespace Ryujinx.Graphics.Gpu.State
/// </remarks>
enum MethodOffset
{
BindChannel = 0x00,
BindChannel = 0x0,
Semaphore = 0x4,
FenceValue = 0x1c,
FenceAction = 0x1d,
WaitForIdle = 0x44,

View file

@ -1,9 +1,9 @@
namespace Ryujinx.Graphics.Gpu.State
{
/// <summary>
/// GPU counter report mode.
/// GPU semaphore operation.
/// </summary>
enum ReportMode
enum SemaphoreOperation
{
Release = 0,
Acquire = 1,

View file

@ -1,9 +1,9 @@
namespace Ryujinx.Graphics.Gpu.State
{
/// <summary>
/// GPU counter report state.
/// GPU semaphore state.
/// </summary>
struct ReportState
struct SemaphoreState
{
#pragma warning disable CS0649
public GpuVa Address;