private static int GetTpcMasks(ServiceCtx context) { long inputPosition = context.Request.GetBufferType0x21().Position; long outputPosition = context.Request.GetBufferType0x22().Position; NvGpuGpuGetTpcMasks args = MemoryHelper.Read <NvGpuGpuGetTpcMasks>(context.Memory, inputPosition); if (args.MaskBufferSize != 0) { args.TpcMask = 3; } MemoryHelper.Write(context.Memory, outputPosition, args); return(NvResult.Success); }
private static int GetTpcMasks(ServiceCtx Context) { long InputPosition = Context.Request.GetBufferType0x21().Position; long OutputPosition = Context.Request.GetBufferType0x22().Position; NvGpuGpuGetTpcMasks Args = AMemoryHelper.Read <NvGpuGpuGetTpcMasks>(Context.Memory, InputPosition); if (Args.MaskBufferSize != 0) { Args.TpcMask = 3; } AMemoryHelper.Write(Context.Memory, OutputPosition, Args); return(NvResult.Success); }