diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-28 12:28:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 12:28:57 -0400 |
commit | 4d7e1662c84ef65f7da5a27b0473125cc6759d5c (patch) | |
tree | 63c9f3fc7a8a76af35e0b5890a4388a4250318a4 /src/yuzu/debugger/graphics/graphics_surface.cpp | |
parent | eb4f2d5596d31930bd46d03f5a98732184afbaad (diff) | |
parent | 45fb74d2623182b38af422bc6c8a51040860143f (diff) |
Merge pull request #1193 from lioncash/priv
gpu: Make memory_manager private
Diffstat (limited to 'src/yuzu/debugger/graphics/graphics_surface.cpp')
-rw-r--r-- | src/yuzu/debugger/graphics/graphics_surface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp index 2b20cf5b96..7e37962d5a 100644 --- a/src/yuzu/debugger/graphics/graphics_surface.cpp +++ b/src/yuzu/debugger/graphics/graphics_surface.cpp @@ -382,7 +382,7 @@ void GraphicsSurfaceWidget::OnUpdate() { // TODO: Implement a good way to visualize alpha components! QImage decoded_image(surface_width, surface_height, QImage::Format_ARGB32); - boost::optional<VAddr> address = gpu.memory_manager->GpuToCpuAddress(surface_address); + boost::optional<VAddr> address = gpu.MemoryManager().GpuToCpuAddress(surface_address); // TODO(bunnei): Will not work with BCn formats that swizzle 4x4 tiles. // Needs to be fixed if we plan to use this feature more, otherwise we may remove it. @@ -443,7 +443,7 @@ void GraphicsSurfaceWidget::SaveSurface() { pixmap->save(&file, "PNG"); } else if (selectedFilter == bin_filter) { auto& gpu = Core::System::GetInstance().GPU(); - boost::optional<VAddr> address = gpu.memory_manager->GpuToCpuAddress(surface_address); + boost::optional<VAddr> address = gpu.MemoryManager().GpuToCpuAddress(surface_address); const u8* buffer = Memory::GetPointer(*address); ASSERT_MSG(buffer != nullptr, "Memory not accessible"); |