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.
This commit is contained in:
Lioncash 2020-04-19 16:12:06 -04:00
parent 2ea7a70da0
commit 44e959157b
3 changed files with 11 additions and 6 deletions

View file

@ -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;
}