summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_dma.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-21 03:24:56 +0100
committerGitHub <noreply@github.com>2019-02-21 03:24:56 +0100
commitae437320c84e8c5fff69e8cec413e63b11f952b6 (patch)
treed7f7f74d87fdaa6dd9ec829086e8c3814ae0506b /src/video_core/engines/maxwell_dma.cpp
parentFixes Unicode Key File Directories (#2120) (diff)
parentvideo_core: Remove usages of System::GetInstance() within the engines (diff)
downloadyuzu-ae437320c84e8c5fff69e8cec413e63b11f952b6.tar
yuzu-ae437320c84e8c5fff69e8cec413e63b11f952b6.tar.gz
yuzu-ae437320c84e8c5fff69e8cec413e63b11f952b6.tar.bz2
yuzu-ae437320c84e8c5fff69e8cec413e63b11f952b6.tar.lz
yuzu-ae437320c84e8c5fff69e8cec413e63b11f952b6.tar.xz
yuzu-ae437320c84e8c5fff69e8cec413e63b11f952b6.tar.zst
yuzu-ae437320c84e8c5fff69e8cec413e63b11f952b6.zip
Diffstat (limited to 'src/video_core/engines/maxwell_dma.cpp')
-rw-r--r--src/video_core/engines/maxwell_dma.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index d6c41a5ae..529a14ec7 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include "common/assert.h"
#include "core/core.h"
#include "core/memory.h"
#include "video_core/engines/maxwell_3d.h"
@@ -11,8 +12,9 @@
namespace Tegra::Engines {
-MaxwellDMA::MaxwellDMA(VideoCore::RasterizerInterface& rasterizer, MemoryManager& memory_manager)
- : memory_manager(memory_manager), rasterizer{rasterizer} {}
+MaxwellDMA::MaxwellDMA(Core::System& system, VideoCore::RasterizerInterface& rasterizer,
+ MemoryManager& memory_manager)
+ : memory_manager(memory_manager), system{system}, rasterizer{rasterizer} {}
void MaxwellDMA::CallMethod(const GPU::MethodCall& method_call) {
ASSERT_MSG(method_call.method < Regs::NUM_REGS,
@@ -59,7 +61,7 @@ void MaxwellDMA::HandleCopy() {
}
// All copies here update the main memory, so mark all rasterizer states as invalid.
- Core::System::GetInstance().GPU().Maxwell3D().dirty_flags.OnMemoryWrite();
+ system.GPU().Maxwell3D().dirty_flags.OnMemoryWrite();
if (regs.exec.is_dst_linear && regs.exec.is_src_linear) {
// When the enable_2d bit is disabled, the copy is performed as if we were copying a 1D