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:
Karol Herbst 2026-04-23 03:51:55 +02:00 committed by Marge Bot
parent 68dc336af7
commit 86007ae1ad

View file

@ -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. */