diff options
author | Rob Clark <[email protected]> | 2020-01-14 14:46:11 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-15 00:56:24 +0000 |
commit | 2629cb627c2c4a3f75614886ce0fc0ce76e4f6f1 (patch) | |
tree | 464d146861057bcb56d3e4b6c00ae84c6ec31692 /src/freedreno/ir3/disasm-a3xx.c | |
parent | 22c5c54a4fffb7d0179218ec8cec237cbc049160 (diff) |
freedreno/ir3: rename instructions
Turns out this range of opcodes are more general purpose if/else/endif
instructions.
We should re-work tess to create a basic block and use normal flow
control. And possibly (for a6xx+) optimize cases to use if/else/endif
when appropriate.
Signed-off-by: Rob Clark <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3398>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3398>
Diffstat (limited to 'src/freedreno/ir3/disasm-a3xx.c')
-rw-r--r-- | src/freedreno/ir3/disasm-a3xx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/freedreno/ir3/disasm-a3xx.c b/src/freedreno/ir3/disasm-a3xx.c index 1cd82876edb..bbc532a46a4 100644 --- a/src/freedreno/ir3/disasm-a3xx.c +++ b/src/freedreno/ir3/disasm-a3xx.c @@ -185,7 +185,7 @@ static void print_instr_cat0(struct disasm_ctx *ctx, instr_t *instr) switch (cat0->opc) { case OPC_KILL: - case OPC_CONDEND: + case OPC_IF: fprintf(ctx->out, " %sp0.%c", cat0->inv ? "!" : "", component[cat0->comp]); break; @@ -927,8 +927,9 @@ static const struct opc_info { OPC(0, OPC_CHMASK, chmask), OPC(0, OPC_CHSH, chsh), OPC(0, OPC_FLOW_REV, flow_rev), - OPC(0, OPC_CONDEND, condend), - OPC(0, OPC_ENDPATCH, endpatch), + OPC(0, OPC_IF, if), + OPC(0, OPC_ELSE, else), + OPC(0, OPC_ENDIF, endif), /* category 1: */ OPC(1, OPC_MOV, ), |