Module: Mesa Branch: main Commit: 9083e9a483696672514c18cec0a91ffd480f0591 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9083e9a483696672514c18cec0a91ffd480f0591
Author: Filip Gawin <[email protected]> Date: Tue Aug 24 21:28:19 2021 +0200 nir: fix shadowed variable in nir_lower_bit_size.c Fixes: 6d792989924 ("nir/lower_bit_size: fix lowering of {imul,umul}_high") Reviewed-by: Timur Kristóf <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12527> --- src/compiler/nir/nir_lower_bit_size.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_bit_size.c b/src/compiler/nir/nir_lower_bit_size.c index 0bfe723575f..eb4d9cdc048 100644 --- a/src/compiler/nir/nir_lower_bit_size.c +++ b/src/compiler/nir/nir_lower_bit_size.c @@ -74,7 +74,7 @@ lower_alu_instr(nir_builder *bld, nir_alu_instr *alu, unsigned bit_size) nir_ssa_def *lowered_dst = NULL; if (op == nir_op_imul_high || op == nir_op_umul_high) { assert(dst_bit_size * 2 <= bit_size); - nir_ssa_def *lowered_dst = nir_imul(bld, srcs[0], srcs[1]); + lowered_dst = nir_imul(bld, srcs[0], srcs[1]); if (nir_op_infos[op].output_type & nir_type_uint) lowered_dst = nir_ushr_imm(bld, lowered_dst, dst_bit_size); else
