mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-24 00:52:03 +00:00
Implement GetTpcMasks on nvservices
This commit is contained in:
parent
b2b1d7dcd7
commit
9e50ed53e6
2 changed files with 10 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
public int MaskBufferSize;
|
||||
public int Reserved;
|
||||
public long MaskBufferAddress;
|
||||
public long Unk;
|
||||
public int TpcMask;
|
||||
public int Padding;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue