mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 04:08:10 +02:00
nir: handle new multadd opcodes in helpers
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
68dc336af7
commit
86007ae1ad
1 changed files with 1 additions and 1 deletions
|
|
@ -1907,7 +1907,7 @@ nir_def_all_uses_ignore_sign_bit(const nir_def *def)
|
|||
nir_alu_instr *alu = nir_instr_as_alu(instr);
|
||||
if (alu->op == nir_op_fabs) {
|
||||
continue;
|
||||
} else if (alu->op == nir_op_fmul || alu->op == nir_op_ffma_old) {
|
||||
} else if (alu->op == nir_op_fmul || nir_alu_instr_is_mul_add(alu)) {
|
||||
nir_alu_src *alu_src = list_entry(use, nir_alu_src, src);
|
||||
unsigned src_index = alu_src - alu->src;
|
||||
/* a * a doesn't care about sign of a. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue