diff options
Diffstat (limited to 'src/yuzu/debugger/graphics')
| -rw-r--r-- | src/yuzu/debugger/graphics/graphics_surface.cpp | 7 | ||||
| -rw-r--r-- | src/yuzu/debugger/graphics/graphics_surface.h | 2 | 
2 files changed, 4 insertions, 5 deletions
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp index 71683da8e..11023ed63 100644 --- a/src/yuzu/debugger/graphics/graphics_surface.cpp +++ b/src/yuzu/debugger/graphics/graphics_surface.cpp @@ -261,7 +261,7 @@ void GraphicsSurfaceWidget::OnSurfaceSourceChanged(int new_value) {  void GraphicsSurfaceWidget::OnSurfaceAddressChanged(qint64 new_value) {      if (surface_address != new_value) { -        surface_address = static_cast<Tegra::GPUVAddr>(new_value); +        surface_address = static_cast<GPUVAddr>(new_value);          surface_source_list->setCurrentIndex(static_cast<int>(Source::Custom));          emit Update(); @@ -383,13 +383,12 @@ void GraphicsSurfaceWidget::OnUpdate() {      // TODO: Implement a good way to visualize alpha components!      QImage decoded_image(surface_width, surface_height, QImage::Format_ARGB32); -    std::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.      auto unswizzled_data = Tegra::Texture::UnswizzleTexture( -        *address, 1, 1, Tegra::Texture::BytesPerPixel(surface_format), surface_width, -        surface_height, 1U); +        gpu.MemoryManager().GetPointer(surface_address), 1, 1, +        Tegra::Texture::BytesPerPixel(surface_format), surface_width, surface_height, 1U);      auto texture_data = Tegra::Texture::DecodeTexture(unswizzled_data, surface_format,                                                        surface_width, surface_height); diff --git a/src/yuzu/debugger/graphics/graphics_surface.h b/src/yuzu/debugger/graphics/graphics_surface.h index 323e39d94..89445b18f 100644 --- a/src/yuzu/debugger/graphics/graphics_surface.h +++ b/src/yuzu/debugger/graphics/graphics_surface.h @@ -87,7 +87,7 @@ private:      QPushButton* save_surface;      Source surface_source; -    Tegra::GPUVAddr surface_address; +    GPUVAddr surface_address;      unsigned surface_width;      unsigned surface_height;      Tegra::Texture::TextureFormat surface_format;  | 
