diff options
| author | 2015-05-09 04:02:32 -0300 | |
|---|---|---|
| committer | 2015-05-09 04:02:32 -0300 | |
| commit | 17a8cae0038b82202149bad687823b89074aa696 (patch) | |
| tree | 02970a9b2368551c4af31e4138db1b6ded6d018c /src/citra_qt/debugger/graphics_cmdlists.cpp | |
| parent | Memory: Support more regions in the VAddr-PAddr translation functions (diff) | |
| download | yuzu-17a8cae0038b82202149bad687823b89074aa696.tar.gz yuzu-17a8cae0038b82202149bad687823b89074aa696.tar.xz yuzu-17a8cae0038b82202149bad687823b89074aa696.zip | |
Memory: Add GetPhysicalPointer helper function
Diffstat (limited to 'src/citra_qt/debugger/graphics_cmdlists.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp index 6727acf18..66e11dd5b 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics_cmdlists.cpp | |||
| @@ -159,7 +159,7 @@ void TextureInfoDockWidget::OnStrideChanged(int value) { | |||
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | QPixmap TextureInfoDockWidget::ReloadPixmap() const { | 161 | QPixmap TextureInfoDockWidget::ReloadPixmap() const { |
| 162 | u8* src = Memory::GetPointer(Memory::PhysicalToVirtualAddress(info.physical_address)); | 162 | u8* src = Memory::GetPhysicalPointer(info.physical_address); |
| 163 | return QPixmap::fromImage(LoadTexture(src, info)); | 163 | return QPixmap::fromImage(LoadTexture(src, info)); |
| 164 | } | 164 | } |
| 165 | 165 | ||
| @@ -274,7 +274,7 @@ void GPUCommandListWidget::SetCommandInfo(const QModelIndex& index) { | |||
| 274 | auto format = Pica::registers.GetTextures()[index].format; | 274 | auto format = Pica::registers.GetTextures()[index].format; |
| 275 | 275 | ||
| 276 | auto info = Pica::DebugUtils::TextureInfo::FromPicaRegister(config, format); | 276 | auto info = Pica::DebugUtils::TextureInfo::FromPicaRegister(config, format); |
| 277 | u8* src = Memory::GetPointer(Memory::PhysicalToVirtualAddress(config.GetPhysicalAddress())); | 277 | u8* src = Memory::GetPhysicalPointer(config.GetPhysicalAddress()); |
| 278 | new_info_widget = new TextureInfoWidget(src, info); | 278 | new_info_widget = new TextureInfoWidget(src, info); |
| 279 | } else { | 279 | } else { |
| 280 | new_info_widget = new QWidget; | 280 | new_info_widget = new QWidget; |