diff options
| author | 2014-12-10 21:51:00 +0100 | |
|---|---|---|
| committer | 2014-12-20 18:06:54 +0100 | |
| commit | 1c972ef3b93252a157ec15d0878a2be3e4b46a0e (patch) | |
| tree | ef6432579232cf4d040eb2694a06c7f807deeae0 /src/citra_qt/debugger/graphics_cmdlists.cpp | |
| parent | Pica: Unify ugly address translation hacks. (diff) | |
| download | yuzu-1c972ef3b93252a157ec15d0878a2be3e4b46a0e.tar.gz yuzu-1c972ef3b93252a157ec15d0878a2be3e4b46a0e.tar.xz yuzu-1c972ef3b93252a157ec15d0878a2be3e4b46a0e.zip | |
Add support for a ridiculous number of texture formats.
Diffstat (limited to 'src/citra_qt/debugger/graphics_cmdlists.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp index bf35f035f..95187e54d 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics_cmdlists.cpp | |||
| @@ -69,6 +69,13 @@ TextureInfoDockWidget::TextureInfoDockWidget(const Pica::DebugUtils::TextureInfo | |||
| 69 | format_choice->addItem(tr("RGBA5551")); | 69 | format_choice->addItem(tr("RGBA5551")); |
| 70 | format_choice->addItem(tr("RGB565")); | 70 | format_choice->addItem(tr("RGB565")); |
| 71 | format_choice->addItem(tr("RGBA4")); | 71 | format_choice->addItem(tr("RGBA4")); |
| 72 | format_choice->addItem(tr("IA8")); | ||
| 73 | format_choice->addItem(tr("UNK6")); | ||
| 74 | format_choice->addItem(tr("I8")); | ||
| 75 | format_choice->addItem(tr("A8")); | ||
| 76 | format_choice->addItem(tr("IA4")); | ||
| 77 | format_choice->addItem(tr("UNK10")); | ||
| 78 | format_choice->addItem(tr("A4")); | ||
| 72 | format_choice->setCurrentIndex(static_cast<int>(info.format)); | 79 | format_choice->setCurrentIndex(static_cast<int>(info.format)); |
| 73 | connect(format_choice, SIGNAL(currentIndexChanged(int)), this, SLOT(OnFormatChanged(int))); | 80 | connect(format_choice, SIGNAL(currentIndexChanged(int)), this, SLOT(OnFormatChanged(int))); |
| 74 | 81 | ||
| @@ -265,7 +272,7 @@ void GPUCommandListWidget::SetCommandInfo(const QModelIndex& index) { | |||
| 265 | auto format = Pica::registers.GetTextures()[index].format; | 272 | auto format = Pica::registers.GetTextures()[index].format; |
| 266 | 273 | ||
| 267 | auto info = Pica::DebugUtils::TextureInfo::FromPicaRegister(config, format); | 274 | auto info = Pica::DebugUtils::TextureInfo::FromPicaRegister(config, format); |
| 268 | u8* src = Memory::GetPointer(config.GetPhysicalAddress()); | 275 | u8* src = Memory::GetPointer(Pica::PAddrToVAddr(config.GetPhysicalAddress())); |
| 269 | new_info_widget = new TextureInfoWidget(src, info); | 276 | new_info_widget = new TextureInfoWidget(src, info); |
| 270 | } else { | 277 | } else { |
| 271 | new_info_widget = new QWidget; | 278 | new_info_widget = new QWidget; |