glsl: Refactor handling of ast_array_index to a separate function
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 15 Mar 2013 21:10:12 +0000 (14:10 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 8 Apr 2013 22:17:05 +0000 (15:17 -0700)
commit46934adb8d855a9505f2231ba3f1ad5449b896a4
tree8b32df284f39e03ab6063d7f1c2c4742e07ae7b1
parentcd39ae73944333690d72c4356ac45675fecef958
glsl: Refactor handling of ast_array_index to a separate function

I love 800+ line switch-statements as much as the next guy... Future
commits will make changes to this part of the AST-to-HIR conversion, and
extracting this code will make that a bit easier.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/Makefile.sources
src/glsl/ast.h
src/glsl/ast_array_index.cpp [new file with mode: 0644]
src/glsl/ast_to_hir.cpp