diff options
Diffstat (limited to 'src/citra_qt')
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 10 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_framebuffer.cpp | 4 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_vertex_shader.cpp | 6 |
3 files changed, 10 insertions, 10 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()); |
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp index 0c1a3f47f..e07344591 100644 --- a/src/citra_qt/debugger/graphics_framebuffer.cpp +++ b/src/citra_qt/debugger/graphics_framebuffer.cpp | |||
| @@ -178,7 +178,7 @@ void GraphicsFramebufferWidget::OnUpdate() | |||
| 178 | { | 178 | { |
| 179 | // TODO: Store a reference to the registers in the debug context instead of accessing them directly... | 179 | // TODO: Store a reference to the registers in the debug context instead of accessing them directly... |
| 180 | 180 | ||
| 181 | const auto& framebuffer = Pica::registers.framebuffer; | 181 | const auto& framebuffer = Pica::g_state.regs.framebuffer; |
| 182 | 182 | ||
| 183 | framebuffer_address = framebuffer.GetColorBufferPhysicalAddress(); | 183 | framebuffer_address = framebuffer.GetColorBufferPhysicalAddress(); |
| 184 | framebuffer_width = framebuffer.GetWidth(); | 184 | framebuffer_width = framebuffer.GetWidth(); |
| @@ -191,7 +191,7 @@ void GraphicsFramebufferWidget::OnUpdate() | |||
| 191 | 191 | ||
| 192 | case Source::DepthBuffer: | 192 | case Source::DepthBuffer: |
| 193 | { | 193 | { |
| 194 | const auto& framebuffer = Pica::registers.framebuffer; | 194 | const auto& framebuffer = Pica::g_state.regs.framebuffer; |
| 195 | 195 | ||
| 196 | framebuffer_address = framebuffer.GetDepthBufferPhysicalAddress(); | 196 | framebuffer_address = framebuffer.GetDepthBufferPhysicalAddress(); |
| 197 | framebuffer_width = framebuffer.GetWidth(); | 197 | framebuffer_width = framebuffer.GetWidth(); |
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp index 3b072d015..14d3f8f39 100644 --- a/src/citra_qt/debugger/graphics_vertex_shader.cpp +++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp | |||
| @@ -253,13 +253,13 @@ void GraphicsVertexShaderModel::OnUpdate() | |||
| 253 | 253 | ||
| 254 | info.Clear(); | 254 | info.Clear(); |
| 255 | 255 | ||
| 256 | for (auto instr : Pica::VertexShader::GetShaderBinary()) | 256 | for (auto instr : Pica::g_state.vs.program_code) |
| 257 | info.code.push_back({instr}); | 257 | info.code.push_back({instr}); |
| 258 | 258 | ||
| 259 | for (auto pattern : Pica::VertexShader::GetSwizzlePatterns()) | 259 | for (auto pattern : Pica::g_state.vs.swizzle_data) |
| 260 | info.swizzle_info.push_back({pattern}); | 260 | info.swizzle_info.push_back({pattern}); |
| 261 | 261 | ||
| 262 | info.labels.insert({Pica::registers.vs_main_offset, "main"}); | 262 | info.labels.insert({ Pica::g_state.regs.vs_main_offset, "main" }); |
| 263 | 263 | ||
| 264 | endResetModel(); | 264 | endResetModel(); |
| 265 | } | 265 | } |