broadcom/compiler: copy packing when converting add to mul
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 4 Nov 2021 12:41:20 +0000 (13:41 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 4 Nov 2021 13:57:39 +0000 (13:57 +0000)
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13675>

src/broadcom/compiler/qpu_schedule.c

index f65ee8b..055ad1f 100644 (file)
@@ -891,6 +891,13 @@ qpu_convert_add_to_mul(struct v3d_qpu_instr *inst)
         inst->flags.ac = V3D_QPU_COND_NONE;
         inst->flags.apf = V3D_QPU_PF_NONE;
         inst->flags.auf = V3D_QPU_UF_NONE;
+
+        inst->alu.mul.output_pack = inst->alu.add.output_pack;
+        inst->alu.mul.a_unpack = inst->alu.add.a_unpack;
+        inst->alu.mul.b_unpack = inst->alu.add.b_unpack;
+        inst->alu.add.output_pack = V3D_QPU_PACK_NONE;
+        inst->alu.add.a_unpack = V3D_QPU_UNPACK_NONE;
+        inst->alu.add.b_unpack = V3D_QPU_UNPACK_NONE;
 }
 
 static bool