From 015b1d9e6dd74bdf30dd1aa634e042eeced247fb Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Mon, 18 May 2026 14:39:53 +0200 Subject: [PATCH] ac/llvm: don't assert on 32bit ffma before gfx9 Yes it's slow, but it's better than nothing. Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/llvm/ac_nir_to_llvm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c index 5492b7b1785..5726b65566e 100644 --- a/src/amd/llvm/ac_nir_to_llvm.c +++ b/src/amd/llvm/ac_nir_to_llvm.c @@ -760,8 +760,6 @@ static bool visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr) } break; case nir_op_ffma: - /* FMA is slow on gfx6-8, so it shouldn't be used. */ - assert(instr->def.bit_size != 32 || ctx->ac.gfx_level >= GFX9); result = emit_fp_intrinsic(&ctx->ac, "llvm.fma", def_type, src[0], src[1], src[2]); break; case nir_op_ffmaz: