linker: Propagate max_array_access while linking functions
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 25 Jan 2011 20:06:18 +0000 (12:06 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 25 Jan 2011 21:41:26 +0000 (13:41 -0800)
commit0f4b2a0a23650d8f773c53d84cb2ead1f6d4fc8e
tree981f7e654707c8c26bc6a13551f21eefbefd779c
parentc87e9ef4d291b3fc18f7af2c7a7646b9a860f4af
linker: Propagate max_array_access while linking functions

Update the max_array_access of a global as functions that use that
global are pulled into the linked shader.

Fixes piglit test glsl-fs-implicit-array-size-01 and bugzilla #33219.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/glsl/link_functions.cpp
src/glsl/linker.cpp