glsl: Apply the transformation "1/rsq(x) == sqrt(x)" in opt_algebraic.
authorEric Anholt <eric@anholt.net>
Thu, 7 Nov 2013 20:15:13 +0000 (12:15 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 15 Nov 2013 19:33:07 +0000 (11:33 -0800)
commitaa6d7bc6d601c8803b136f427b8d86aa1043450c
tree83702cd8c1bcf5bf3c31f94c0cb7ae3680eba2ee
parent477f8cd08bb8467d28fdfd6c25fe358957e3da58
glsl: Apply the transformation "1/rsq(x) == sqrt(x)" in opt_algebraic.

The comment was stale, because the lowering in question wasn't happening
in lower_instructions.cpp.  Presumably if the lowering ever moves there,
we can plumb the lowering mask through to opt_algebraic.

total instructions in shared programs: 1618696 -> 1616810 (-0.12%)
instructions in affected programs:     243018 -> 241132 (-0.78%)
GAINED:                                0
LOST:                                  0

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/opt_algebraic.cpp