Mesa (master): freedreno/ir3/print: print left/right neighbors too
Rob Clark
robclark at kemper.freedesktop.org
Wed Aug 12 22:40:09 UTC 2015
Module: Mesa
Branch: master
Commit: 6e04020dd7784bb44d5e04b41efce342f80840cf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e04020dd7784bb44d5e04b41efce342f80840cf
Author: Rob Clark <robclark at freedesktop.org>
Date: Tue Aug 11 16:09:48 2015 -0400
freedreno/ir3/print: print left/right neighbors too
When debugging compiler, this is useful to see.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
---
src/gallium/drivers/freedreno/ir3/ir3_print.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_print.c b/src/gallium/drivers/freedreno/ir3/ir3_print.c
index f377982..07e03d2 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);
More information about the mesa-commit
mailing list