mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 19:18:11 +02:00
glsl/softfp: rename ffma to fmad
They were always implemented as unfused. Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
29b86874c3
commit
337018fcbb
4 changed files with 5 additions and 5 deletions
|
|
@ -594,7 +594,7 @@ __fmul32(uint a, uint b)
|
|||
}
|
||||
|
||||
uint
|
||||
__ffma32(uint a, uint b, uint c)
|
||||
__fmad32(uint a, uint b, uint c)
|
||||
{
|
||||
return __fadd32(__fmul32(a, b), c);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -955,7 +955,7 @@ __fmul64(uint64_t a, uint64_t b)
|
|||
}
|
||||
|
||||
uint64_t
|
||||
__ffma64(uint64_t a, uint64_t b, uint64_t c)
|
||||
__fmad64(uint64_t a, uint64_t b, uint64_t c)
|
||||
{
|
||||
return __fadd64(__fmul64(a, b), c);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -655,8 +655,8 @@ lower_doubles_instr_to_soft(nir_builder *b, nir_alu_instr *instr,
|
|||
mangled_name = "__fmul64(u641;u641;";
|
||||
break;
|
||||
case nir_op_ffma:
|
||||
name = "__ffma64";
|
||||
mangled_name = "__ffma64(u641;u641;u641;";
|
||||
name = "__fmad64";
|
||||
mangled_name = "__fmad64(u641;u641;u641;";
|
||||
break;
|
||||
case nir_op_fsat:
|
||||
name = "__fsat64";
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ lower_float_instr_to_soft(nir_builder *b, nir_instr *instr,
|
|||
mangled_name = "__fmul32(u1;u1;";
|
||||
break;
|
||||
case nir_op_ffma:
|
||||
mangled_name = "__ffma32(u1;u1;u1;";
|
||||
mangled_name = "__fmad32(u1;u1;u1;";
|
||||
break;
|
||||
case nir_op_fsat:
|
||||
mangled_name = "__fsat32(u1;";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue