glsl: propagate max_array_access through function calls
authorDominik Behr <dbehr@chromium.org>
Wed, 4 Sep 2013 21:40:48 +0000 (14:40 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 5 Sep 2013 21:36:11 +0000 (14:36 -0700)
commit0f6fce15852d3d6fb5251e42394332a62788ef67
treedb328ece1803b9e7aa985ebd7fa7414039412f65
parent85f7df81a91b1825bf25adf3d4febcbb5e0a0d7e
glsl: propagate max_array_access through function calls

Fixes a bug where if an uniform array is passed to a function the accesses
to the array are not propagated so later all but the first vector of the
uniform array are removed in parcel_out_uniform_storage resulting in
broken shaders and out of bounds access to arrays in
brw::vec4_visitor::pack_uniform_registers.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-and-Tested-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dominik Behr <dbehr@chromium.org>
src/glsl/link_functions.cpp