diff options
| author | 2020-04-19 16:12:06 -0400 | |
|---|---|---|
| committer | 2020-04-19 16:12:08 -0400 | |
| commit | 44e959157bf8247549e1d35e9332a66fc6a0cb9d (patch) | |
| tree | a03646cd5230bb425223fa5758777a3130a62e30 /src/video_core/dma_pusher.cpp | |
| parent | Merge pull request #3686 from lioncash/table (diff) | |
| download | yuzu-44e959157bf8247549e1d35e9332a66fc6a0cb9d.tar.gz yuzu-44e959157bf8247549e1d35e9332a66fc6a0cb9d.tar.xz yuzu-44e959157bf8247549e1d35e9332a66fc6a0cb9d.zip | |
dma_pusher: Remove reliance on the global system instance
With this, the video core is now has no calls to the global system
instance at all.
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 @@ | |||
| 12 | 12 | ||
| 13 | namespace Tegra { | 13 | namespace Tegra { |
| 14 | 14 | ||
| 15 | DmaPusher::DmaPusher(GPU& gpu) : gpu(gpu) {} | 15 | DmaPusher::DmaPusher(Core::System& system, GPU& gpu) : gpu{gpu}, system{system} {} |
| 16 | 16 | ||
| 17 | DmaPusher::~DmaPusher() = default; | 17 | DmaPusher::~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 | } |