From 5160d6f806cf9d67f1d07fb359fe85175ec3531c Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 20 Apr 2026 04:14:56 +0200 Subject: [PATCH] tgsi_to_nir: translate MAD as ffma_weak Reviewed-by: Georg Lehmann Part-of: --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 9d79d031647..fc917f2e25c 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -1650,7 +1650,7 @@ static const nir_op op_trans[TGSI_OPCODE_LAST] = { [TGSI_OPCODE_MAX] = nir_op_fmax, [TGSI_OPCODE_SLT] = nir_op_slt, [TGSI_OPCODE_SGE] = nir_op_sge, - [TGSI_OPCODE_MAD] = nir_op_ffma_old, + [TGSI_OPCODE_MAD] = nir_op_ffma_weak, [TGSI_OPCODE_LRP] = 0, [TGSI_OPCODE_SQRT] = nir_op_fsqrt, [TGSI_OPCODE_FRC] = nir_op_ffract,