nir: Add a flag for lowering ffma.
authorEric Anholt <eric@anholt.net>
Fri, 30 Jan 2015 21:49:48 +0000 (13:49 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Feb 2015 22:47:51 +0000 (14:47 -0800)
commite5ecf8e4272522e1950d1d4318df19377bf49ae1
tree9dd7c90b2549a3c9870c7b4809329d5579b1e845
parent42a8ace66e539957b31ea96fe9a2aaacdb90f30e
nir: Add a flag for lowering ffma.

vc4 cse/algebraic-disabled stats:
total uniforms in shared programs: 13966 -> 13791 (-1.25%)
uniforms in affected programs:     435 -> 260 (-40.23%)
total instructions in shared programs: 44732 -> 44356 (-0.84%)
instructions in affected programs:     9599 -> 9223 (-3.92%)

v2: Rebase to master (no TGSI->NIR present)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
src/glsl/nir/nir.h
src/glsl/nir/nir_opt_algebraic.py