summaryrefslogtreecommitdiff
path: root/src/yuzu/debugger
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-21 11:16:21 -0400
committerbunnei <bunneidev@gmail.com>2018-04-24 17:40:43 -0400
commit9e11a76e926a7190880063d8fc8c3d97003b9938 (patch)
tree13d1749f110f5517ef506e10f575693ea2aa63ca /src/yuzu/debugger
parente8c2bb24b2d839f3b97cd3a17855fd0d1ad8f72e (diff)
memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses.
Diffstat (limited to 'src/yuzu/debugger')
-rw-r--r--src/yuzu/debugger/graphics/graphics_surface.cpp4
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 5fada74be..5cadb807e 100644
--- a/src/yuzu/debugger/graphics/graphics_surface.cpp
+++ b/src/yuzu/debugger/graphics/graphics_surface.cpp
@@ -378,7 +378,7 @@ void GraphicsSurfaceWidget::OnUpdate() {
// TODO: Implement a good way to visualize alpha components!
QImage decoded_image(surface_width, surface_height, QImage::Format_ARGB32);
- VAddr address = gpu.memory_manager->PhysicalToVirtualAddress(surface_address);
+ VAddr address = gpu.memory_manager->GpuToCpuAddress(surface_address);
auto unswizzled_data =
Tegra::Texture::UnswizzleTexture(address, surface_format, surface_width, surface_height);
@@ -437,7 +437,7 @@ void GraphicsSurfaceWidget::SaveSurface() {
pixmap->save(&file, "PNG");
} else if (selectedFilter == bin_filter) {
auto& gpu = Core::System::GetInstance().GPU();
- VAddr address = gpu.memory_manager->PhysicalToVirtualAddress(surface_address);
+ VAddr address = gpu.memory_manager->GpuToCpuAddress(surface_address);
const u8* buffer = Memory::GetPointer(address);
ASSERT_MSG(buffer != nullptr, "Memory not accessible");