broadcom/compiler: fix add vs. mul

Spotted by a compile warning

Fixes: 7f61ff7b4d ("broadcom/compiler: Merge instructions more efficiently")

Reviewed-by: Iago Torral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11764>
(cherry picked from commit cf05a7e66f)
This commit is contained in:
Thomas H.P. Andersen 2021-07-07 16:50:05 +02:00 committed by Eric Engestrom
parent 2c5ef8cfd3
commit f8cbd4d301
2 changed files with 2 additions and 2 deletions

View file

@ -193,7 +193,7 @@
"description": "broadcom/compiler: fix add vs. mul",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "7f61ff7b4d1dfe791264148ff3cbe8b03c76aeca"
},

View file

@ -821,7 +821,7 @@ qpu_merge_raddrs(struct v3d_qpu_instr *result,
if (mul_instr->alu.mul.a == V3D_QPU_MUX_A)
result->alu.mul.a = V3D_QPU_MUX_B;
if (mul_instr->alu.mul.b == V3D_QPU_MUX_A &&
v3d_qpu_add_op_num_src(mul_instr->alu.mul.op) > 1) {
v3d_qpu_mul_op_num_src(mul_instr->alu.mul.op) > 1) {
result->alu.mul.b = V3D_QPU_MUX_B;
}
}