Implement GetTpcMasks on nvservices

This commit is contained in:
gdkchan 2018-05-13 22:10:45 -03:00
parent b2b1d7dcd7
commit 9e50ed53e6
2 changed files with 10 additions and 2 deletions

View file

@ -5,6 +5,7 @@
public int MaskBufferSize;
public int Reserved;
public long MaskBufferAddress;
public long Unk;
public int TpcMask;
public int Padding;
}
}

View file

@ -140,7 +140,14 @@ namespace Ryujinx.Core.OsHle.Services.Nv.NvGpuGpu
long InputPosition = Context.Request.GetBufferType0x21Position();
long OutputPosition = Context.Request.GetBufferType0x22Position();
Context.Ns.Log.PrintStub(LogClass.ServiceNv, "Stubbed.");
NvGpuGpuGetTpcMasks Args = AMemoryHelper.Read<NvGpuGpuGetTpcMasks>(Context.Memory, InputPosition);
if (Args.MaskBufferSize != 0)
{
Args.TpcMask = 3;
}
AMemoryHelper.Write(Context.Memory, OutputPosition, Args);
return NvResult.Success;
}