glsl: Lower ir_binop_vector_extract to conditional moves
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 26 Mar 2013 21:22:03 +0000 (14:22 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 13 May 2013 19:05:19 +0000 (12:05 -0700)
commitb881ddba7d4a835f879ffe300661a72441448eee
tree96a7b387d2a441b8e9f61a7be5882edc4d91799e
parent943de9cdeacb93d48ad5cb17666e7448990d3dbb
glsl: Lower ir_binop_vector_extract to conditional moves

Lower ir_binop_vector_extract with a non-constant index to a series of
conditional moves.  This is exactly like ir_dereference_array of a
vector with a non-constant index.

v2: Convert tabs to spaces.  Suggested by Eric.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/lower_vec_index_to_cond_assign.cpp