mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 04:08:10 +02:00
bitfrost: support nir_op_ffma
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
d823512442
commit
536ff644fa
2 changed files with 7 additions and 0 deletions
|
|
@ -2975,6 +2975,7 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr)
|
|||
srcs > 2 ? bi_alu_src_index(b, instr->src[2], comps) : bi_null();
|
||||
|
||||
switch (instr->op) {
|
||||
case nir_op_ffma:
|
||||
case nir_op_ffma_old:
|
||||
bi_fma_to(b, sz, dst, s0, s1, s2);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -128,6 +128,12 @@ bool valhall_can_merge_workgroups(nir_shader *nir);
|
|||
.fuse_ffma16 = true, \
|
||||
.fuse_ffma32 = true, \
|
||||
.fuse_ffma64 = true, \
|
||||
.float_mul_add16 = nir_float_muladd_support_has_ffma | \
|
||||
nir_float_muladd_support_fuse, \
|
||||
.float_mul_add32 = nir_float_muladd_support_has_ffma | \
|
||||
nir_float_muladd_support_fuse, \
|
||||
.float_mul_add64 = nir_float_muladd_support_has_ffma | \
|
||||
nir_float_muladd_support_fuse, \
|
||||
\
|
||||
.lower_uniforms_to_ubo = true, \
|
||||
\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue