diff options
author | Kenneth Graunke <[email protected]> | 2014-02-05 01:47:10 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-02-07 19:38:15 -0800 |
commit | dcb0330d309cdfc7c46ccb7455525f9d888eab0b (patch) | |
tree | 7e06dd72b7556667ddaf91ca0524dee8bbf116ac /src/mesa/drivers | |
parent | 8a7fe50067cf0f0d9af4610b6e10890235fe313d (diff) |
i965: Label JIP and UIP in Broadwell shader disassembly.
This makes it obvious which number is which.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_disasm.c | 8 |
1 files 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); |