freedreno/ir3: Fix double printing of branch suffix

print_instr_name() already prints the suffix.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12742>
This commit is contained in:
Rob Clark
2021-09-07 14:36:39 -07:00
committed by Marge Bot
parent c343fa9ecd
commit d2efcd3f06
+7 -10
View File
@@ -366,23 +366,20 @@ print_instr(struct log_stream *stream, struct ir3_instruction *instr, int lvl)
/* the predicate register src is implied: */
if (instr->opc == OPC_B) {
static const struct {
const char *suffix;
int nsrc;
bool idx;
} brinfo[7] = {
/* clang-format off */
[BRANCH_PLAIN] = {"r", 1, false},
[BRANCH_OR] = {"rao", 2, false},
[BRANCH_AND] = {"raa", 2, false},
[BRANCH_CONST] = {"rac", 0, true},
[BRANCH_ANY] = {"any", 1, false},
[BRANCH_ALL] = {"all", 1, false},
[BRANCH_X] = {"rax", 0, false},
[BRANCH_PLAIN] = {1, false},
[BRANCH_OR] = {2, false},
[BRANCH_AND] = {2, false},
[BRANCH_CONST] = {0, true},
[BRANCH_ANY] = {1, false},
[BRANCH_ALL] = {1, false},
[BRANCH_X] = {0, false},
/* clang-format on */
};
mesa_log_stream_printf(stream, "%s",
brinfo[instr->cat0.brtype].suffix);
if (brinfo[instr->cat0.brtype].idx) {
mesa_log_stream_printf(stream, ".%u", instr->cat0.idx);
}