kk: support nir_op_ffma

Reviewed-by: Aitor Camacho <aitor@lunarg.com>
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-24 15:56:37 +02:00 committed by Marge Bot
parent 59d994c8ca
commit d823512442
2 changed files with 3 additions and 0 deletions

View file

@ -374,6 +374,7 @@ alu_to_msl(struct nir_to_msl_ctx *ctx, nir_alu_instr *instr)
case nir_op_ffloor:
alu_funclike(ctx, instr, "floor");
break;
case nir_op_ffma:
case nir_op_ffma_old:
alu_funclike(ctx, instr, "fma");
break;

View file

@ -86,6 +86,8 @@ static const nir_shader_compiler_options kk_nir_options = {
.lower_fdph = true,
.has_fsub = true,
.has_isub = true,
.float_mul_add16 = nir_float_muladd_support_has_ffma,
.float_mul_add32 = nir_float_muladd_support_has_ffma,
.lower_extract_word = true,
.lower_extract_byte = true,
.lower_insert_word = true,