glsl: Generalize processing of variable redeclarations.
authorPaul Berry <stereotype441@gmail.com>
Sat, 28 Sep 2013 03:38:29 +0000 (20:38 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 Oct 2013 21:27:20 +0000 (14:27 -0700)
commit3699ff4dd19c6102f39edc5d87bd772b380aa168
tree75519e727572d6052107fc391274c50154aa3e82
parent78b072b2bcbd9e730b7a6e09d85c85b44bdd64da
glsl: Generalize processing of variable redeclarations.

This patch modifies the get_variable_being_redeclared() function so
that it no longer relies on the ast_declaration for the variable being
redeclared.  In future patches, this will allow
get_variable_being_redeclared() to be used for processing
redeclarations of the built-in gl_PerVertex interface block.

v2: Also make get_variable_being_redeclared() static.

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