Mesa (main): broadcom/compiler: copy packing when converting add to mul

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 4 14:15:46 UTC 2021


Module: Mesa
Branch: main
Commit: aa5a0e1dad8cdbd77a36e69725e17a27910ff397
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa5a0e1dad8cdbd77a36e69725e17a27910ff397

Author: Iago Toral Quiroga <itoral at igalia.com>
Date:   Thu Nov  4 13:41:20 2021 +0100

broadcom/compiler: copy packing when converting add to mul

Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13675>

---

 src/broadcom/compiler/qpu_schedule.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/broadcom/compiler/qpu_schedule.c b/src/broadcom/compiler/qpu_schedule.c
index f65ee8bf8ec..055ad1f77d7 100644
--- a/src/broadcom/compiler/qpu_schedule.c
+++ b/src/broadcom/compiler/qpu_schedule.c
@@ -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



More information about the mesa-commit mailing list