diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-28 21:58:28 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2019-04-05 23:43:34 -0400 |
| commit | 20be92d5e623a348560dd9f764a9208a99cbc758 (patch) | |
| tree | 667ab57d872946e792fd1f058b87bbb9a86ab878 /src/video_core/memory_manager.h | |
| parent | 89b8801a97da0cd361ce8377883fb7b33f8077ad (diff) | |
memory_manager: Improved implementation of read/write/copy block.
- Fixes graphical issues with Chocobo's Mystery Dungeon EVERY BUDDY!
- Fixes a crash with Mario Tennis Aces
Diffstat (limited to 'src/video_core/memory_manager.h')
| -rw-r--r-- | src/video_core/memory_manager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h index 178e2f655..647cbf93a 100644 --- a/src/video_core/memory_manager.h +++ b/src/video_core/memory_manager.h @@ -10,6 +10,10 @@ #include "common/common_types.h" #include "common/page_table.h" +namespace VideoCore { +class RasterizerInterface; +} + namespace Tegra { /** @@ -43,7 +47,7 @@ struct VirtualMemoryArea { class MemoryManager final { public: - MemoryManager(); + MemoryManager(VideoCore::RasterizerInterface& rasterizer); GPUVAddr AllocateSpace(u64 size, u64 align); GPUVAddr AllocateSpace(GPUVAddr addr, u64 size, u64 align); @@ -144,6 +148,7 @@ private: Common::PageTable page_table{page_bits}; VMAMap vma_map; + VideoCore::RasterizerInterface& rasterizer; }; } // namespace Tegra |
