glsl: Collect all of the non-constant index error checks together
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 15 Mar 2013 22:10:35 +0000 (15:10 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 8 Apr 2013 22:17:05 +0000 (15:17 -0700)
commita70d2f05dc972bbc4a685e65a6ffa8a092b68b4c
treed4a321ae3b0aae59c8de342480a0ccd4294996a7
parentf9d8ca281750baf07ba623f86121f5a875f9bd40
glsl: Collect all of the non-constant index error checks together

This puts all of the checks togeher for easier reading.  It also means
that all the checks are blocked on array->type->is_array.  Shortly this
will allow elimination of some is_error check work-arounds in this
function.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_array_index.cpp