ir3: Support multi-mov instructions
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 25 Jun 2021 09:34:53 +0000 (11:34 +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.c

index 4680be6..9d9bf7d 100644 (file)
@@ -249,8 +249,10 @@ ir3_collect_info(struct ir3_shader_variant *v)
                                collect_reg_info(instr, reg, info);
                        }
 
-                       if (writes_gpr(instr)) {
-                               collect_reg_info(instr, instr->dsts[0], info);
+                       foreach_dst (reg, instr) {
+                               if (is_dest_gpr(reg)) {
+                                       collect_reg_info(instr, reg, info);
+                               }
                        }
 
                        if ((instr->opc == OPC_STP || instr->opc == OPC_LDP)) {