aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/NvGpu.cs
diff options
context:
space:
mode:
authorgdk <gab.dark.100@gmail.com>2019-10-13 03:02:07 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit1876b346fea647e8284a66bb6d62c38801035cff (patch)
tree6eeff094298cda84d1613dc5ec0691e51d7b35f1 /Ryujinx.Graphics/NvGpu.cs
parentf617fb542a0e3d36012d77a4b5acbde7b08902f2 (diff)
Initial work
Diffstat (limited to 'Ryujinx.Graphics/NvGpu.cs')
-rw-r--r--Ryujinx.Graphics/NvGpu.cs64
1 files changed, 0 insertions, 64 deletions
diff --git a/Ryujinx.Graphics/NvGpu.cs b/Ryujinx.Graphics/NvGpu.cs
deleted file mode 100644
index baac0b2d..00000000
--- a/Ryujinx.Graphics/NvGpu.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-using Ryujinx.Graphics.Gal;
-using Ryujinx.Graphics.Graphics3d;
-using Ryujinx.Graphics.Memory;
-using Ryujinx.Graphics.VDec;
-using Ryujinx.Graphics.Vic;
-
-namespace Ryujinx.Graphics
-{
- public class NvGpu
- {
- public const int MaxViewportSize = 0x3FFF;
-
- public IGalRenderer Renderer { get; private set; }
-
- public GpuResourceManager ResourceManager { get; private set; }
-
- public DmaPusher Pusher { get; private set; }
-
- internal NvGpuFifo Fifo { 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; }
-
- private CdmaProcessor _cdmaProcessor;
- internal VideoDecoder VideoDecoder { get; private set; }
- internal VideoImageComposer VideoImageComposer { get; private set; }
-
- public NvGpu(IGalRenderer renderer)
- {
- Renderer = renderer;
-
- ResourceManager = new GpuResourceManager(this);
-
- Pusher = new DmaPusher(this);
-
- Fifo = new NvGpuFifo(this);
- Engine2d = new NvGpuEngine2d(this);
- Engine3d = new NvGpuEngine3d(this);
- EngineM2mf = new NvGpuEngineM2mf(this);
- EngineP2mf = new NvGpuEngineP2mf(this);
-
- _cdmaProcessor = new CdmaProcessor(this);
- VideoDecoder = new VideoDecoder(this);
- VideoImageComposer = new VideoImageComposer(this);
- }
-
- public void PushCommandBuffer(NvGpuVmm vmm, int[] cmdBuffer)
- {
- lock (_cdmaProcessor)
- {
- _cdmaProcessor.PushCommands(vmm, cmdBuffer);
- }
- }
-
- public void UninitializeVideoDecoder()
- {
- lock (_cdmaProcessor)
- {
- FFmpegWrapper.Uninitialize();
- }
- }
- }
-} \ No newline at end of file