ir3/legalize: Support multi-mov instructions
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 22 Apr 2021 17:14:42 +0000 (19:14 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 29 Jun 2021 08:08:12 +0000 (08:08 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11565>

src/freedreno/ir3/ir3_legalize.c

index b354cda..24fe37a 100644 (file)
@@ -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;