1
0
Fork 0
forked from suyu/suyu

debugger/shader: print the invert flag for JMPU

This commit is contained in:
wwylele 2017-07-20 23:18:07 +03:00
parent 8375fd2aba
commit b5609e1578

View file

@ -263,6 +263,10 @@ QVariant GraphicsVertexShaderModel::data(const QModelIndex& index, int role) con
output << ") ";
} 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 << ' ';
}