Apply suggestions from AcK

Co-Authored-By: Ac_K <Acoustik666@gmail.com>
This commit is contained in:
BaronKiko 2019-05-31 02:04:10 +01:00 committed by GitHub
commit aaa7547fa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View file

@ -91,7 +91,9 @@ namespace Ryujinx.Graphics.Graphics3d
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method)) if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
{ {
ProfileConfig profile = Profiles.GPU.Engine3d.CallMethod; ProfileConfig profile = Profiles.GPU.Engine3d.CallMethod;
profile.SessionItem = method.Method.Name; profile.SessionItem = method.Method.Name;
Profile.Begin(profile); Profile.Begin(profile);
method(vmm, methCall); method(vmm, methCall);
@ -202,7 +204,9 @@ namespace Ryujinx.Graphics.Graphics3d
private void SetFrameBuffer(NvGpuVmm vmm, int fbIndex) private void SetFrameBuffer(NvGpuVmm vmm, int fbIndex)
{ {
ProfileConfig profile = Profiles.GPU.Engine3d.SetFrameBuffer; ProfileConfig profile = Profiles.GPU.Engine3d.SetFrameBuffer;
profile.SessionItem = fbIndex.ToString();
profile.SessionItem = fbIndex.ToString();
Profile.Begin(profile); Profile.Begin(profile);
long va = MakeInt64From2xInt32(NvGpuEngine3dReg.FrameBufferNAddress + fbIndex * 0x10); long va = MakeInt64From2xInt32(NvGpuEngine3dReg.FrameBufferNAddress + fbIndex * 0x10);

View file

@ -39,7 +39,8 @@ namespace Ryujinx.Graphics.Graphics3d
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method)) if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
{ {
ProfileConfig profile = Profiles.GPU.EngineM2mf.CallMethod; ProfileConfig profile = Profiles.GPU.EngineM2mf.CallMethod;
profile.SessionItem = method.Method.Name;
profile.SessionItem = method.Method.Name;
Profile.Begin(profile); Profile.Begin(profile);
method(vmm, methCall); method(vmm, methCall);
@ -210,4 +211,4 @@ namespace Ryujinx.Graphics.Graphics3d
Registers[(int)reg] = value; Registers[(int)reg] = value;
} }
} }
} }

View file

@ -56,7 +56,8 @@ namespace Ryujinx.Graphics.Graphics3d
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method)) if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
{ {
ProfileConfig profile = Profiles.GPU.EngineP2mf.PushData; ProfileConfig profile = Profiles.GPU.EngineP2mf.PushData;
profile.SessionItem = method.Method.Name;
profile.SessionItem = method.Method.Name;
Profile.Begin(profile); Profile.Begin(profile);
method(vmm, methCall); method(vmm, methCall);

View file

@ -120,7 +120,7 @@ namespace Ryujinx.Profiler
{ {
public static ProfileConfig CallMethod = new ProfileConfig() public static ProfileConfig CallMethod = new ProfileConfig()
{ {
Category = "GPU.Engine3D", Category = "GPU.Engine3D",
SessionGroup = "CallMethod", SessionGroup = "CallMethod",
}; };