mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-21 09:41:39 +00:00
8c4e4ab3b3
* 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
40 lines
912 B
C#
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;
|
|
}
|
|
}
|