mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
nir/lower_bit_size: use nir_def_replace() instead of nir_def_rewrite_uses()
This commit is contained in:
parent
b0665d1926
commit
e7f7eaa2d5
1 changed files with 3 additions and 3 deletions
|
|
@ -168,9 +168,9 @@ lower_alu_instr(nir_builder *bld, nir_alu_instr *alu, unsigned bit_size)
|
|||
dst_bit_size != bit_size) {
|
||||
nir_alu_type type = nir_op_infos[op].output_type;
|
||||
nir_def *dst = nir_convert_to_bit_size(bld, lowered_dst, type, dst_bit_size);
|
||||
nir_def_rewrite_uses(&alu->def, dst);
|
||||
nir_def_replace(&alu->def, dst);
|
||||
} else {
|
||||
nir_def_rewrite_uses(&alu->def, lowered_dst);
|
||||
nir_def_replace(&alu->def, lowered_dst);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ lower_intrinsic_instr(nir_builder *b, nir_intrinsic_instr *intrin,
|
|||
|
||||
res = nir_convert_to_bit_size(b, res, type, old_bit_size);
|
||||
|
||||
nir_def_rewrite_uses(&intrin->def, res);
|
||||
nir_def_replace(&intrin->def, res);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue