diff options
| author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-04-19 19:12:40 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-19 19:12:40 -0300 |
| commit | 4932010c6f5fc5f2d0c78e69285eaccd64a32c0f (patch) | |
| tree | 1ac09bbf983ade396ed9f976ec0312ebee475964 /src/video_core/dma_pusher.cpp | |
| parent | 85c17a2c354b76b6e1da35ba0527b3c97536a182 (diff) | |
| parent | 44e959157bf8247549e1d35e9332a66fc6a0cb9d (diff) | |
Merge pull request #3729 from lioncash/globals
dma_pusher: Remove reliance on the global system instance
Diffstat (limited to 'src/video_core/dma_pusher.cpp')
| -rw-r--r-- | src/video_core/dma_pusher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cpp index 713c14182..0b77afc71 100644 --- a/src/video_core/dma_pusher.cpp +++ b/src/video_core/dma_pusher.cpp @@ -12,7 +12,7 @@ namespace Tegra { -DmaPusher::DmaPusher(GPU& gpu) : gpu(gpu) {} +DmaPusher::DmaPusher(Core::System& system, GPU& gpu) : gpu{gpu}, system{system} {} DmaPusher::~DmaPusher() = default; @@ -26,7 +26,7 @@ void DmaPusher::DispatchCalls() { dma_pushbuffer_subindex = 0; - while (Core::System::GetInstance().IsPoweredOn()) { + while (system.IsPoweredOn()) { if (!Step()) { break; } |
