nir: Don't use ffma in nir_lower_wpos_ytransform().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2016 19:14:02 +0000 (12:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 21:29:04 +0000 (14:29 -0700)
commit12ab7fc6ac1ca785afb1126607bb95ea26473e06
tree26c52e1641052fda7e8b23a94596afa068da62b6
parentb8b1b1c34cfa7f3c68872b5726eaf554474ea464
nir: Don't use ffma in nir_lower_wpos_ytransform().

ffma is an explicitly fused multiply add with higher precision.
The optimizer will take care of promoting mul/add to fma when
it's beneficial to do so.

This fixes failures on Gen4-5 when using this pass, as those platforms
don't actually implement fma().

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_wpos_ytransform.c