From ec19a354dcc0d4e466ce8bee718ea7e22798413b Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Fri, 16 Aug 2024 15:54:24 +0200 Subject: [PATCH] ir3: print predicate inversion for branches Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3_print.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/freedreno/ir3/ir3_print.c b/src/freedreno/ir3/ir3_print.c index f9cd81f8eb0..5d4662551d0 100644 --- a/src/freedreno/ir3/ir3_print.c +++ b/src/freedreno/ir3/ir3_print.c @@ -307,6 +307,13 @@ print_reg_name(struct log_stream *stream, struct ir3_instruction *instr, if (reg->tied) mesa_log_stream_printf(stream, "(tied)"); + if (instr->opc == OPC_BR || instr->opc == OPC_BRAA || + instr->opc == OPC_BRAO) { + bool inv = reg == instr->srcs[0] ? instr->cat0.inv1 : instr->cat0.inv2; + if (inv) + mesa_log_stream_printf(stream, "!"); + } + if (reg->flags & IR3_REG_SHARED) mesa_log_stream_printf(stream, "s"); if (reg->flags & IR3_REG_HALF)