summaryrefslogtreecommitdiff
path: root/src/video_core/dma_pusher.cpp
diff options
context:
space:
mode:
authorGravatar Rodrigo Locatti2020-04-19 19:12:40 -0300
committerGravatar GitHub2020-04-19 19:12:40 -0300
commit4932010c6f5fc5f2d0c78e69285eaccd64a32c0f (patch)
tree1ac09bbf983ade396ed9f976ec0312ebee475964 /src/video_core/dma_pusher.cpp
parentMerge pull request #3694 from ReinUsesLisp/indexed-quads (diff)
parentdma_pusher: Remove reliance on the global system instance (diff)
downloadyuzu-4932010c6f5fc5f2d0c78e69285eaccd64a32c0f.tar.gz
yuzu-4932010c6f5fc5f2d0c78e69285eaccd64a32c0f.tar.xz
yuzu-4932010c6f5fc5f2d0c78e69285eaccd64a32c0f.zip
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.cpp4
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 @@
12 12
13namespace Tegra { 13namespace Tegra {
14 14
15DmaPusher::DmaPusher(GPU& gpu) : gpu(gpu) {} 15DmaPusher::DmaPusher(Core::System& system, GPU& gpu) : gpu{gpu}, system{system} {}
16 16
17DmaPusher::~DmaPusher() = default; 17DmaPusher::~DmaPusher() = default;
18 18
@@ -26,7 +26,7 @@ void DmaPusher::DispatchCalls() {
26 26
27 dma_pushbuffer_subindex = 0; 27 dma_pushbuffer_subindex = 0;
28 28
29 while (Core::System::GetInstance().IsPoweredOn()) { 29 while (system.IsPoweredOn()) {
30 if (!Step()) { 30 if (!Step()) {
31 break; 31 break;
32 } 32 }