glsl: Set the uniform_block index for the linked shader variables.
authorEric Anholt <eric@anholt.net>
Tue, 1 May 2012 20:34:04 +0000 (13:34 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Jul 2012 17:43:42 +0000 (10:43 -0700)
commit093b20666d73f8fc410dc7bf168ab7197756b1f5
tree96465b8d40f52dec6d657f859f602b531498e975
parent9f1a4a6340824786142be9bc14f0c3418f14a69f
glsl: Set the uniform_block index for the linked shader variables.

At this point in the linking, we've totally lost track of the struct
gl_uniform_buffer that this pointed to in the original unlinked
shader, so we do a nasty n^2 walk to find it the new one based on the
variable name.

Note that these point into the shader's list of gl_uniform_buffers,
not the linked program's.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/link_uniforms.cpp