mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 02:00:21 +01:00
ir3: print predicate inversion for branches
Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29409>
This commit is contained in:
parent
13066905d3
commit
ec19a354dc
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue