diff options
author | Rob Clark <[email protected]> | 2015-08-11 16:09:48 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-08-12 18:37:43 -0400 |
commit | 6e04020dd7784bb44d5e04b41efce342f80840cf (patch) | |
tree | 619d659767fa9fd4fbcc6aa19eca5c326b1482d9 /src/gallium/drivers/freedreno/ir3 | |
parent | 0667962103034d7426c763a7793ce22baab46c8e (diff) |
freedreno/ir3/print: print left/right neighbors too
When debugging compiler, this is useful to see.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_print.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_print.c b/src/gallium/drivers/freedreno/ir3/ir3_print.c index f377982dd5e..07e03d26908 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_print.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_print.c @@ -175,6 +175,20 @@ print_instr(struct ir3_instruction *instr, int lvl) printf("]"); } + if (instr->cp.left) { + printf(", left=_"); + printf("["); + print_instr_name(instr->cp.left); + printf("]"); + } + + if (instr->cp.right) { + printf(", right=_"); + printf("["); + print_instr_name(instr->cp.right); + printf("]"); + } + if (is_meta(instr)) { if (instr->opc == OPC_META_FO) { printf(", off=%d", instr->fo.off); |