diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-12-29 09:50:04 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-19 03:12:30 +0100 |
commit | 96fd1348aea9d70cb502a94cbd0412be6edb0189 (patch) | |
tree | b264d2437dd4fda8c8257566bb5a5d8eb096131a /src/video_core/host1x/host1x.h | |
parent | SMMU: Fix Unregister on MultiAddress (diff) | |
download | yuzu-96fd1348aea9d70cb502a94cbd0412be6edb0189.tar yuzu-96fd1348aea9d70cb502a94cbd0412be6edb0189.tar.gz yuzu-96fd1348aea9d70cb502a94cbd0412be6edb0189.tar.bz2 yuzu-96fd1348aea9d70cb502a94cbd0412be6edb0189.tar.lz yuzu-96fd1348aea9d70cb502a94cbd0412be6edb0189.tar.xz yuzu-96fd1348aea9d70cb502a94cbd0412be6edb0189.tar.zst yuzu-96fd1348aea9d70cb502a94cbd0412be6edb0189.zip |
Diffstat (limited to 'src/video_core/host1x/host1x.h')
-rw-r--r-- | src/video_core/host1x/host1x.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/video_core/host1x/host1x.h b/src/video_core/host1x/host1x.h index 18f7389f6..13c37e6b4 100644 --- a/src/video_core/host1x/host1x.h +++ b/src/video_core/host1x/host1x.h @@ -5,8 +5,10 @@ #include "common/common_types.h" +#include "common/address_space.h" #include "video_core/host1x/gpu_device_memory_manager.h" #include "video_core/host1x/syncpoint_manager.h" +#include "video_core/memory_manager.h" namespace Core { class System; @@ -36,10 +38,28 @@ public: return memory_manager; } + Tegra::MemoryManager& GMMU() { + return gmmu_manager; + } + + const Tegra::MemoryManager& GMMU() const { + return gmmu_manager; + } + + Common::FlatAllocator<u32, 0, 32>& Allocator() { + return *allocator; + } + + const Common::FlatAllocator<u32, 0, 32>& Allocator() const { + return *allocator; + } + private: Core::System& system; SyncpointManager syncpoint_manager; Tegra::MaxwellDeviceMemoryManager memory_manager; + Tegra::MemoryManager gmmu_manager; + std::unique_ptr<Common::FlatAllocator<u32, 0, 32>> allocator; }; } // namespace Host1x |