mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
nir: fix shadowed variable in nir_lower_bit_size.c
Fixes: 6d79298992 ("nir/lower_bit_size: fix lowering of {imul,umul}_high")
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12527>
This commit is contained in:
parent
3538b5af6d
commit
9083e9a483
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue