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:
parent
2ea7a70da0
commit
44e959157b
3 changed files with 11 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue