glsl: Add common swizzles to ir_builder.
authorEric Anholt <eric@anholt.net>
Mon, 19 Mar 2012 21:26:04 +0000 (14:26 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 14 Apr 2012 00:01:10 +0000 (17:01 -0700)
commitb782352745d322596a9122969f5c0e57ea032c1b
tree3fa81ca40de5318f7fa4b740b6095852711d3a5d
parentd6e6566206029ace72ba037a3ef7950876eeb88b
glsl: Add common swizzles to ir_builder.

Now we can fold a bunch of our expression setup in ff_fragment_shader
into single-line, parseable commits.

v2: Make it actually work.  I wasn't setting num_components in the
    mask structure, and not setting up a mask structure is way easier.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_builder.cpp
src/glsl/ir_builder.h
src/mesa/main/ff_fragment_shader.cpp