glsl: Generate ir_binop_vector_extract for indexing of vectors
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 16 Mar 2013 01:08:22 +0000 (18:08 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 13 May 2013 19:05:19 +0000 (12:05 -0700)
commit3acb21517b3a23cf1044531e96d9741bd1c122c3
tree4b26c98b1665a4404fdb2f6d9e1dcc4467b330b5
parent89704eb1b019d42c949e6e08a8cb8bacbacbf63b
glsl: Generate ir_binop_vector_extract for indexing of vectors

Now ir_dereference_array of a vector will never occur in the RHS of an
expression.

v2: Add back the { } around the if-statement body to make it more
readable.  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/ast_array_index.cpp