Add detail of ZbcSetTableArguments (#810)

* Add detail of ZbcSetTableArguments

This is a missing part of the #800 PR that cause an assert to be
triggered in debug mode.

Also, remove Fence in SurfaceFlinger as it's a duplicate of NvFence.

* Fix critical issue in size checking of ioctl

oops
This commit is contained in:
Thomas Guillemard 2019-11-08 15:49:28 +01:00 committed by Ac_K
parent 5116951222
commit 88593bf872
4 changed files with 48 additions and 19 deletions

View file

@ -1,11 +0,0 @@
using System.Runtime.InteropServices;
namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
{
[StructLayout(LayoutKind.Sequential, Size = 0x8)]
struct Fence
{
public int Id;
public int Value;
}
}

View file

@ -1,4 +1,5 @@
using System.Runtime.InteropServices;
using Ryujinx.HLE.HOS.Services.Nv.Types;
using System.Runtime.InteropServices;
namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
{
@ -9,15 +10,15 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
public int FenceCount;
[FieldOffset(0x4)]
public Fence Fence0;
public NvFence Fence0;
[FieldOffset(0xC)]
public Fence Fence1;
public NvFence Fence1;
[FieldOffset(0x14)]
public Fence Fence2;
public NvFence Fence2;
[FieldOffset(0x1C)]
public Fence Fence3;
public NvFence Fence3;
}
}