glsl2: Do algebraic optimizations after linking as well.
authorEric Anholt <eric@anholt.net>
Sat, 31 Jul 2010 22:47:35 +0000 (15:47 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 31 Jul 2010 22:52:24 +0000 (15:52 -0700)
commitf6b03f323500c71fc20c0d64c618d9aa73ced5b4
treebd60265477ac7361f790ea0900d39dceb74f3891
parent784695442c415cf0be882434a25671ecfb635d34
glsl2: Do algebraic optimizations after linking as well.

Linking brings in inlining of builtins, so we weren't catching the
(rcp(/sqrt(x)) -> rsq(x)) without it.
src/glsl/linker.cpp