agx: consistent ffma name

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31908>
This commit is contained in:
Alyssa Rosenzweig 2024-10-13 22:36:19 -04:00
parent 7e9d468891
commit 2c513e8689
3 changed files with 3 additions and 3 deletions

View file

@ -1842,7 +1842,7 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr)
if (instr->def.bit_size == 16)
return agx_hfma_to(b, dst, s0, s1, s2);
else
return agx_fma_to(b, dst, s0, s1, s2);
return agx_ffma_to(b, dst, s0, s1, s2);
case nir_op_fsat: {
agx_instr *I = agx_fadd_to(b, dst, s0, agx_negzero());

View file

@ -222,7 +222,7 @@ op("fadd",
encoding = (0x2A, 0x3F, 4, 6),
srcs = 2, is_float = True)
op("fma",
op("ffma",
encoding = (0x3A, 0x3F, 6, 8),
srcs = 3, is_float = True)

View file

@ -65,7 +65,7 @@ struct alu_timing {
/* clang-format off */
struct alu_timing op_timings[] = {
[AGX_OPCODE_FMA] = { F32, 2, 1 },
[AGX_OPCODE_FFMA] = { F32, 2, 1 },
[AGX_OPCODE_FADD] = { F32, 2, 1 },
[AGX_OPCODE_FMUL] = { F32, 2, 1 },