summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/intel/tools/disasm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c
index a1cb19197cf..fcb61c44acb 100644
--- a/src/intel/tools/disasm.c
+++ b/src/intel/tools/disasm.c
@@ -75,12 +75,13 @@ gen_disasm_disassemble(struct gen_disasm *disasm, void *assembly, int start,
/* Simplistic, but efficient way to terminate disasm */
if (brw_inst_opcode(devinfo, insn) == BRW_OPCODE_SEND ||
- brw_inst_opcode(devinfo, insn) == BRW_OPCODE_SENDC)
+ brw_inst_opcode(devinfo, insn) == BRW_OPCODE_SENDC) {
if (brw_inst_eot(devinfo, insn))
break;
- if (brw_inst_opcode(devinfo, insn) == 0)
- break;
+ }
+ if (brw_inst_opcode(devinfo, insn) == 0)
+ break;
}
}