glsl: fix names in lower_constant_arrays_to_uniforms
authorTapani Pälli <tapani.palli@intel.com>
Mon, 23 Mar 2015 07:12:35 +0000 (09:12 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 23 Mar 2015 09:18:39 +0000 (11:18 +0200)
commit3cf99701ba6c9e56c9126fdbb74107a31ffcbcfb
tree3c35d11919a63bde80a63ad7870ab99f470efc67
parenta6d4a108d27f2b635748c583fe0507f04b3b493e
glsl: fix names in lower_constant_arrays_to_uniforms

Patch changes lowering pass to use unique name for each uniform
so that arrays from different stages cannot end up having same
name.

v2: instead of global counter, use pointer to achieve
    unique name (Kenneth Graunke)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89590
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: 10.5 10.4 <mesa-stable@lists.freedesktop.org>
src/glsl/lower_const_arrays_to_uniforms.cpp