diff options
| author | 2015-05-22 23:27:41 -0400 | |
|---|---|---|
| committer | 2015-05-22 23:27:41 -0400 | |
| commit | a7946f9027a87da93cd76ec46d54cadf4203b082 (patch) | |
| tree | 01e98e937a3ed9d8c65b270df016658f8ae89a97 /src/citra_qt/debugger/graphics_cmdlists.cpp | |
| parent | Merge pull request #801 from purpasmart96/hid_stubs (diff) | |
| parent | Pica: Create 'State' structure and move state memory there. (diff) | |
| download | yuzu-a7946f9027a87da93cd76ec46d54cadf4203b082.tar.gz yuzu-a7946f9027a87da93cd76ec46d54cadf4203b082.tar.xz yuzu-a7946f9027a87da93cd76ec46d54cadf4203b082.zip | |
Merge pull request #776 from bunnei/pica-state
GPU: Consolidate Pica state
Diffstat (limited to 'src/citra_qt/debugger/graphics_cmdlists.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp index 66e11dd5b..804c735a3 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics_cmdlists.cpp | |||
| @@ -228,7 +228,7 @@ void GPUCommandListModel::OnPicaTraceFinished(const Pica::DebugUtils::PicaTrace& | |||
| 228 | 228 | ||
| 229 | #define COMMAND_IN_RANGE(cmd_id, reg_name) \ | 229 | #define COMMAND_IN_RANGE(cmd_id, reg_name) \ |
| 230 | (cmd_id >= PICA_REG_INDEX(reg_name) && \ | 230 | (cmd_id >= PICA_REG_INDEX(reg_name) && \ |
| 231 | cmd_id < PICA_REG_INDEX(reg_name) + sizeof(decltype(Pica::registers.reg_name)) / 4) | 231 | cmd_id < PICA_REG_INDEX(reg_name) + sizeof(decltype(Pica::g_state.regs.reg_name)) / 4) |
| 232 | 232 | ||
| 233 | void GPUCommandListWidget::OnCommandDoubleClicked(const QModelIndex& index) { | 233 | void GPUCommandListWidget::OnCommandDoubleClicked(const QModelIndex& index) { |
| 234 | const unsigned int command_id = list_widget->model()->data(index, GPUCommandListModel::CommandIdRole).toUInt(); | 234 | const unsigned int command_id = list_widget->model()->data(index, GPUCommandListModel::CommandIdRole).toUInt(); |
| @@ -244,8 +244,8 @@ void GPUCommandListWidget::OnCommandDoubleClicked(const QModelIndex& index) { | |||
| 244 | } else { | 244 | } else { |
| 245 | index = 2; | 245 | index = 2; |
| 246 | } | 246 | } |
| 247 | auto config = Pica::registers.GetTextures()[index].config; | 247 | auto config = Pica::g_state.regs.GetTextures()[index].config; |
| 248 | auto format = Pica::registers.GetTextures()[index].format; | 248 | auto format = Pica::g_state.regs.GetTextures()[index].format; |
| 249 | auto info = Pica::DebugUtils::TextureInfo::FromPicaRegister(config, format); | 249 | auto info = Pica::DebugUtils::TextureInfo::FromPicaRegister(config, format); |
| 250 | 250 | ||
| 251 | // TODO: Instead, emit a signal here to be caught by the main window widget. | 251 | // TODO: Instead, emit a signal here to be caught by the main window widget. |
| @@ -270,8 +270,8 @@ void GPUCommandListWidget::SetCommandInfo(const QModelIndex& index) { | |||
| 270 | } else { | 270 | } else { |
| 271 | index = 2; | 271 | index = 2; |
| 272 | } | 272 | } |
| 273 | auto config = Pica::registers.GetTextures()[index].config; | 273 | auto config = Pica::g_state.regs.GetTextures()[index].config; |
| 274 | auto format = Pica::registers.GetTextures()[index].format; | 274 | auto format = Pica::g_state.regs.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::GetPhysicalPointer(config.GetPhysicalAddress()); | 277 | u8* src = Memory::GetPhysicalPointer(config.GetPhysicalAddress()); |