From 7036e4fd31ad76464925c7725cafe2d30e8e9667 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Thu, 22 Apr 2021 19:14:42 +0200 Subject: [PATCH] ir3/legalize: Support multi-mov instructions Part-of: --- src/freedreno/ir3/ir3_legalize.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/freedreno/ir3/ir3_legalize.c b/src/freedreno/ir3/ir3_legalize.c index b354cda..24fe37a 100644 --- a/src/freedreno/ir3/ir3_legalize.c +++ b/src/freedreno/ir3/ir3_legalize.c @@ -206,8 +206,7 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block) last_rel = n; } - if (n->dsts_count > 0) { - struct ir3_register *reg = n->dsts[0]; + foreach_dst (reg, n) { if (regmask_get(&state->needs_ss_war, reg)) { n->flags |= IR3_INSTR_SS; last_input_needs_ss = false; -- 2.7.4