diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-02-15 22:05:17 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-02-15 22:06:23 -0500 |
| commit | a8fa5019b51c9ce765124121daac863cfc1365aa (patch) | |
| tree | e23b97873c1e6b4fcb34066fccb393d2a1147bb8 /src/video_core/engines/kepler_memory.h | |
| parent | 99da6362c43a24c608a2790f668f10a62e3b80a6 (diff) | |
video_core: Remove usages of System::GetInstance() within the engines
Avoids the use of the global accessor in favor of explicitly making the
system a dependency within the interface.
Diffstat (limited to 'src/video_core/engines/kepler_memory.h')
| -rw-r--r-- | src/video_core/engines/kepler_memory.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/video_core/engines/kepler_memory.h b/src/video_core/engines/kepler_memory.h index fe9ebc5b9..f680c2ad9 100644 --- a/src/video_core/engines/kepler_memory.h +++ b/src/video_core/engines/kepler_memory.h @@ -5,13 +5,16 @@ #pragma once #include <array> -#include "common/assert.h" #include "common/bit_field.h" #include "common/common_funcs.h" #include "common/common_types.h" #include "video_core/gpu.h" #include "video_core/memory_manager.h" +namespace Core { +class System; +} + namespace VideoCore { class RasterizerInterface; } @@ -23,7 +26,8 @@ namespace Tegra::Engines { class KeplerMemory final { public: - KeplerMemory(VideoCore::RasterizerInterface& rasterizer, MemoryManager& memory_manager); + KeplerMemory(Core::System& system, VideoCore::RasterizerInterface& rasterizer, + MemoryManager& memory_manager); ~KeplerMemory(); /// Write the value to the register identified by method. @@ -76,6 +80,7 @@ public: } state{}; private: + Core::System& system; MemoryManager& memory_manager; VideoCore::RasterizerInterface& rasterizer; |
