aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStarlet <antherynx.studio@mail.com>2018-04-05 09:18:13 -0400
committergdkchan <gab.dark.100@gmail.com>2018-04-05 10:18:13 -0300
commit1f013df7ed6d1bd4b2869f6f53a013bb15bdc9d5 (patch)
treed2dcfa28355cda8a13a6decc7083e3db8064f9af
parent6e514e944dd988e59553de5baae3224a5c2d05d8 (diff)
[ServiceNvDrv] Add 0x4703 ([/dev/nvhost-ctrl-gpu] NvGpuIoctlZbcSetTable) (#70)
[ServiceNvDrv] Add 0x4703 ([/dev/nvhost-ctrl-gpu] NvGpuIoctlZbcSetTable)
-rw-r--r--Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs b/Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs
index f877fb9c..6774a3d0 100644
--- a/Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs
+++ b/Ryujinx.Core/OsHle/Services/Nv/ServiceNvDrv.cs
@@ -51,6 +51,7 @@ namespace Ryujinx.Core.OsHle.Services.Nv
{ ("/dev/nvhost-ctrl", 0x001d), NvHostIoctlCtrlEventWait },
{ ("/dev/nvhost-ctrl-gpu", 0x4701), NvGpuIoctlZcullGetCtxSize },
{ ("/dev/nvhost-ctrl-gpu", 0x4702), NvGpuIoctlZcullGetInfo },
+ { ("/dev/nvhost-ctrl-gpu", 0x4703), NvGpuIoctlZbcSetTable },
{ ("/dev/nvhost-ctrl-gpu", 0x4705), NvGpuIoctlGetCharacteristics },
{ ("/dev/nvhost-ctrl-gpu", 0x4706), NvGpuIoctlGetTpcMasks },
{ ("/dev/nvhost-ctrl-gpu", 0x4714), NvGpuIoctlZbcGetActiveSlotMask },
@@ -382,6 +383,21 @@ namespace Ryujinx.Core.OsHle.Services.Nv
return 0;
}
+ private long NvGpuIoctlZbcSetTable(ServiceCtx Context)
+ {
+ long Position = Context.Request.GetSendBuffPtr();
+
+ MemReader Reader = new MemReader(Context.Memory, Position);
+
+ int ColorDs = Reader.ReadInt32();
+ int ColorL2 = Reader.ReadInt32();
+ int Depth = Reader.ReadInt32();
+ int Format = Reader.ReadInt32();
+ int Type = Reader.ReadInt32();
+
+ return 0;
+ }
+
private long NvGpuIoctlGetCharacteristics(ServiceCtx Context)
{
long Position = Context.Request.GetSendBuffPtr();