mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 19:28:11 +02:00
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:
parent
59d994c8ca
commit
d823512442
2 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue