aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/NvGpu.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-09-18 01:30:35 -0300
committerGitHub <noreply@github.com>2018-09-18 01:30:35 -0300
commitd4187aaa9d7194aa26d04aee838edbc3a38f1862 (patch)
tree06fe725c1067b4aeca21749799b835d85e7d2787 /Ryujinx.Graphics/NvGpu.cs
parentbec95cacc1061f91373a1e3a1411981af7fe2e4e (diff)
Allow "reinterpretation" of framebuffer/zeta formats (#418)
* (Re)Implement format reinterpretation, other changes * Implement writeback to guest memory, some refactoring * More refactoring, implement reinterpretation the old way again * Clean up * Some fixes on M2MF (old Dma engine), added partial support for P2MF, fix conditional ssy, add Z24S8 zeta format, other fixes * nit: Formatting * Address PR feedback
Diffstat (limited to 'Ryujinx.Graphics/NvGpu.cs')
-rw-r--r--Ryujinx.Graphics/NvGpu.cs19
1 files changed, 12 insertions, 7 deletions
diff --git a/Ryujinx.Graphics/NvGpu.cs b/Ryujinx.Graphics/NvGpu.cs
index 7ba700b8..4c6abd23 100644
--- a/Ryujinx.Graphics/NvGpu.cs
+++ b/Ryujinx.Graphics/NvGpu.cs
@@ -1,5 +1,4 @@
using Ryujinx.Graphics.Gal;
-using Ryujinx.Graphics;
namespace Ryujinx.Graphics
{
@@ -7,21 +6,27 @@ namespace Ryujinx.Graphics
{
public IGalRenderer Renderer { get; private set; }
+ public GpuResourceManager ResourceManager { get; private set; }
+
public NvGpuFifo Fifo { get; private set; }
- public NvGpuEngine2d Engine2d { get; private set; }
- public NvGpuEngine3d Engine3d { get; private set; }
- public NvGpuEngineDma EngineDma { get; private set; }
+ internal NvGpuEngine2d Engine2d { get; private set; }
+ internal NvGpuEngine3d Engine3d { get; private set; }
+ internal NvGpuEngineM2mf EngineM2mf { get; private set; }
+ internal NvGpuEngineP2mf EngineP2mf { get; private set; }
public NvGpu(IGalRenderer Renderer)
{
this.Renderer = Renderer;
+ ResourceManager = new GpuResourceManager(this);
+
Fifo = new NvGpuFifo(this);
- Engine2d = new NvGpuEngine2d(this);
- Engine3d = new NvGpuEngine3d(this);
- EngineDma = new NvGpuEngineDma(this);
+ Engine2d = new NvGpuEngine2d(this);
+ Engine3d = new NvGpuEngine3d(this);
+ EngineM2mf = new NvGpuEngineM2mf(this);
+ EngineP2mf = new NvGpuEngineP2mf(this);
}
}
} \ No newline at end of file