summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_noop_swizzle.cpp
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Fix copy'n'wasted ir_noop_swizzle conditions.Eric Anholt2010-09-221-2/+2
| | | | It considered .xyyy a noop for vec4 instead of .xyzw, and similar for vec3.
* glsl2: Add a pass to strip out noop swizzles.Eric Anholt2010-08-131-0/+80
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.