linker: Set sizes for non-global arrays as well
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 25 Jan 2011 20:04:08 +0000 (12:04 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 25 Jan 2011 21:41:26 +0000 (13:41 -0800)
commitc87e9ef4d291b3fc18f7af2c7a7646b9a860f4af
tree93620d6d7c9a16703887412f7da523641dcfcedb
parent5c2cec8337c5afc6941cd5c0bcedd27ff99b1bc7
linker: Set sizes for non-global arrays as well

Previously only global arrays with implicit sizes would be patched.
This causes all arrays that are actually accessed to be sized.

Fixes piglit test glsl-fs-implicit-array-size-02.

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