From 86007ae1ad3e44e76da1036528685e5bdb720dc6 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 23 Apr 2026 03:51:55 +0200 Subject: [PATCH] nir: handle new multadd opcodes in helpers Reviewed-by: Georg Lehmann Part-of: --- src/compiler/nir/nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 4c847864e4f..d15a3b58b87 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -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. */