Sfoglia il codice sorgente

debugger/shader: print the invert flag for JMPU

wwylele 9 anni fa
parent
commit
b5609e1578

+ 4 - 0
src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp

@@ -263,6 +263,10 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con
 
 
                         output << ") ";
                         output << ") ";
                     } else if (opcode_info.subtype & OpCode::Info::HasUniformIndex) {
                     } else if (opcode_info.subtype & OpCode::Info::HasUniformIndex) {
+                        if (opcode.EffectiveOpCode() == OpCode::Id::JMPU &&
+                            (instr.flow_control.num_instructions & 1) == 1) {
+                            output << '!';
+                        }
                         output << 'b' << instr.flow_control.bool_uniform_id << ' ';
                         output << 'b' << instr.flow_control.bool_uniform_id << ' ';
                     }
                     }