From dcb0330d309cdfc7c46ccb7455525f9d888eab0b Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 5 Feb 2014 01:47:10 -0800 Subject: [PATCH] i965: Label JIP and UIP in Broadwell shader disassembly. This makes it obvious which number is which. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/gen8_disasm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_disasm.c b/src/mesa/drivers/dri/i965/gen8_disasm.c index 37059083b3b..e63babdaebc 100644 --- a/src/mesa/drivers/dri/i965/gen8_disasm.c +++ b/src/mesa/drivers/dri/i965/gen8_disasm.c @@ -829,13 +829,17 @@ gen8_disassemble(FILE *file, struct gen8_instruction *inst, int gen) err |= src2_3src(file, inst); } else { if (opcode == BRW_OPCODE_ENDIF || opcode == BRW_OPCODE_WHILE) { - format(file, " %d", gen8_jip(inst)); + pad(file, 16); + format(file, "JIP: %d", gen8_jip(inst)); } else if (opcode == BRW_OPCODE_IF || opcode == BRW_OPCODE_ELSE || opcode == BRW_OPCODE_BREAK || opcode == BRW_OPCODE_CONTINUE || opcode == BRW_OPCODE_HALT) { - format(file, " %d %d", gen8_jip(inst), gen8_uip(inst)); + pad(file, 16); + format(file, "JIP: %d", gen8_jip(inst)); + pad(file, 32); + format(file, "UIP: %d", gen8_uip(inst)); } else { if (m_opcode[opcode].ndst > 0) { pad(file, 16); -- 2.30.2