glsl2: Add a pass to strip out noop swizzles.
authorEric Anholt <eric@anholt.net>
Fri, 13 Aug 2010 14:16:38 +0000 (07:16 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 14 Aug 2010 00:54:47 +0000 (17:54 -0700)
commit8f8cdbfba43550d0b8985fb087961864e4cd92b6
tree3f8fb030267b1c128268e6beb84d4ab98523d81d
parent42cab131dac469475c67ab38a2c29f2f66e6ff49
glsl2: Add a pass to strip out noop swizzles.

With the glsl2-965 branch, the optimization of glsl-algebraic-rcp-rcp
regressed due to noop swizzles hiding information from ir_algebraic.
This cleans up those noop swizzles for us.
src/glsl/Makefile
src/glsl/glsl_parser_extras.cpp
src/glsl/ir_noop_swizzle.cpp [new file with mode: 0644]
src/glsl/ir_optimization.h