glsl_to_tgsi: fix out-of-bounds constant access and crash for uniforms
authorMarek Olšák <marek.olsak@amd.com>
Sat, 11 Apr 2015 11:49:38 +0000 (13:49 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 16 Apr 2015 16:36:29 +0000 (18:36 +0200)
commit14c5bc3b9a6b03a8e42ef79da66d8b81b239cf96
tree60401365fcfbe753846ebebeb71c573d576cf2bb
parentd3045d391b0b06faf4fb6be0394ff64c415cf336
glsl_to_tgsi: fix out-of-bounds constant access and crash for uniforms

This fixes piglit shaders@glsl-fs-uniform-array-loop-unroll with immediate
shader compilation - it's a compiler test, so it has never been translated
to TGSI before.

Cc: 10.4 10.5 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp