0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-10-20 05:21:40 +00:00
ryujinx-fork/Ryujinx.HLE/HOS/Services/Nv/NvDrvServices/NvHostChannel/Types/SubmitArguments.cs
Billy Laws 8c4e4ab3b3
Fixup channel submit IOCTL syncpoint parameters (#2774)
* Fixup channel submit IOCTL syncpoint parameters

The current arguments worked by happenstance as games only ever submit
one syncpoint and request one fence back, if a game were to do something
other than this then the arguments would've been parsed entirely wrong.

* Address feedback
2021-10-24 18:34:44 -03:00

40 lines
912 B
C#

using System.Runtime.InteropServices;
namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostChannel.Types
{
[StructLayout(LayoutKind.Sequential)]
struct CommandBuffer
{
public int Mem;
public uint Offset;
public int WordsCount;
}
[StructLayout(LayoutKind.Sequential)]
struct Reloc
{
public int CmdbufMem;
public int CmdbufOffset;
public int Target;
public int TargetOffset;
}
[StructLayout(LayoutKind.Sequential)]
struct SyncptIncr
{
public uint Id;
public uint Incrs;
public uint Reserved1;
public uint Reserved2;
public uint Reserved3;
}
[StructLayout(LayoutKind.Sequential)]
struct SubmitArguments
{
public int CmdBufsCount;
public int RelocsCount;
public int SyncptIncrsCount;
public int FencesCount;
}
}