mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 19:18:11 +02:00
glsl: translate fma as fma_weak
Our glsl compiler only supports OpenGL GLSL and there ffma is not guaranteed to be fused. Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
5160d6f806
commit
ac679a8504
1 changed files with 1 additions and 1 deletions
|
|
@ -2569,7 +2569,7 @@ nir_visitor::visit(ir_expression *ir)
|
|||
|
||||
case ir_binop_ldexp: result = nir_ldexp(&b, srcs[0], srcs[1]); break;
|
||||
case ir_triop_fma:
|
||||
result = nir_ffma_old(&b, srcs[0], srcs[1], srcs[2]);
|
||||
result = nir_ffma_weak(&b, srcs[0], srcs[1], srcs[2]);
|
||||
break;
|
||||
case ir_triop_lrp:
|
||||
result = nir_flrp(&b, srcs[0], srcs[1], srcs[2]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue