mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 06:18:10 +02:00
lima: rename ppir_op_ffma to ppir_op_fmad
It's not actually a fused operation. Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
337018fcbb
commit
bdb5301281
2 changed files with 5 additions and 5 deletions
|
|
@ -123,7 +123,7 @@ static void ppir_node_add_src(ppir_compiler *comp, ppir_node *node,
|
|||
ppir_node_target_assign(ps, child);
|
||||
}
|
||||
|
||||
static bool ppir_emit_ffma(ppir_block *block, nir_instr *ni)
|
||||
static bool ppir_emit_fmad(ppir_block *block, nir_instr *ni)
|
||||
{
|
||||
nir_alu_instr *instr = nir_instr_as_alu(ni);
|
||||
nir_def *def = &instr->def;
|
||||
|
|
@ -203,7 +203,7 @@ static int nir_to_ppir_opcodes[nir_num_opcodes] = {
|
|||
[nir_op_ftrunc] = ppir_op_trunc,
|
||||
[nir_op_fsat] = ppir_op_sat,
|
||||
[nir_op_fclamp_pos] = ppir_op_clamp_pos,
|
||||
[nir_op_ffma] = ppir_op_ffma,
|
||||
[nir_op_ffma] = ppir_op_fmad,
|
||||
};
|
||||
|
||||
static bool ppir_emit_alu(ppir_block *block, nir_instr *ni)
|
||||
|
|
@ -217,8 +217,8 @@ static bool ppir_emit_alu(ppir_block *block, nir_instr *ni)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (op == ppir_op_ffma) {
|
||||
return ppir_emit_ffma(block, ni);
|
||||
if (op == ppir_op_fmad) {
|
||||
return ppir_emit_fmad(block, ni);
|
||||
}
|
||||
|
||||
unsigned mask = nir_component_mask(def->num_components);
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ typedef enum {
|
|||
ppir_op_undef,
|
||||
ppir_op_dummy,
|
||||
|
||||
ppir_op_ffma,
|
||||
ppir_op_fmad,
|
||||
|
||||
ppir_op_num,
|
||||
} ppir_op;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue