diff options
| author | 2017-01-05 00:48:29 +0800 | |
|---|---|---|
| committer | 2017-01-04 13:48:29 -0300 | |
| commit | c18cb1b192d60499af3d68b244e86c8dd8f55200 (patch) | |
| tree | 48c481884bb29dd7bde72694a6ed703bb416d7c3 /src/citra_qt/debugger/graphics | |
| parent | Update .travis.yml (diff) | |
| download | yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.gz yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.xz yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.zip | |
Fix some warnings (#2399)
Diffstat (limited to 'src/citra_qt/debugger/graphics')
| -rw-r--r-- | src/citra_qt/debugger/graphics/graphics_cmdlists.cpp | 5 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp index dab529e3a..f5a2ec761 100644 --- a/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp | |||
| @@ -135,11 +135,6 @@ void GPUCommandListWidget::OnCommandDoubleClicked(const QModelIndex& index) { | |||
| 135 | UNREACHABLE_MSG("Unknown texture command"); | 135 | UNREACHABLE_MSG("Unknown texture command"); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | const auto texture = Pica::g_state.regs.GetTextures()[texture_index]; | ||
| 139 | const auto config = texture.config; | ||
| 140 | const auto format = texture.format; | ||
| 141 | const auto info = Pica::DebugUtils::TextureInfo::FromPicaRegister(config, format); | ||
| 142 | |||
| 143 | // TODO: Open a surface debugger | 138 | // TODO: Open a surface debugger |
| 144 | } | 139 | } |
| 145 | } | 140 | } |
diff --git a/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp index b75b94ef8..ff2e7e363 100644 --- a/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp +++ b/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp | |||
| @@ -276,9 +276,6 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con | |||
| 276 | output << 'b' << instr.flow_control.bool_uniform_id << ' '; | 276 | output << 'b' << instr.flow_control.bool_uniform_id << ' '; |
| 277 | } | 277 | } |
| 278 | 278 | ||
| 279 | u32 target_addr = instr.flow_control.dest_offset; | ||
| 280 | u32 target_addr_else = instr.flow_control.dest_offset; | ||
| 281 | |||
| 282 | if (opcode_info.subtype & OpCode::Info::HasAlternative) { | 279 | if (opcode_info.subtype & OpCode::Info::HasAlternative) { |
| 283 | output << "else jump to 0x" << std::setw(4) << std::right | 280 | output << "else jump to 0x" << std::setw(4) << std::right |
| 284 | << std::setfill('0') << std::hex | 281 | << std::setfill('0') << std::hex |
| @@ -473,7 +470,6 @@ GraphicsVertexShaderWidget::GraphicsVertexShaderWidget( | |||
| 473 | } | 470 | } |
| 474 | 471 | ||
| 475 | void GraphicsVertexShaderWidget::OnBreakPointHit(Pica::DebugContext::Event event, void* data) { | 472 | void GraphicsVertexShaderWidget::OnBreakPointHit(Pica::DebugContext::Event event, void* data) { |
| 476 | auto input = static_cast<Pica::Shader::InputVertex*>(data); | ||
| 477 | if (event == Pica::DebugContext::Event::VertexShaderInvocation) { | 473 | if (event == Pica::DebugContext::Event::VertexShaderInvocation) { |
| 478 | Reload(true, data); | 474 | Reload(true, data); |
| 479 | } else { | 475 | } else { |