commit | d9da350a8334201400a43d105b92fce2bd6a5f32 | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Mon Jul 09 20:59:29 2012 -0700 |
committer | Kenneth Graunke <kenneth@whitecape.org> | Thu Jul 12 10:20:20 2012 -0700 |
tree | 60e76ef1eae2e71532b1a03b503fab8a72493a1f | |
parent | 0bb3d4ba54f98f4d45abe598dabc905f08055cd5 [diff] |
glsl/ir_builder: Add a new swizzle_for_size() function. This swizzles away unwanted components, while preserving the order of the ones that remain. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>