glsl: Add gl_uniform_buffer_variable::IndexName field
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 22 Jan 2013 05:23:24 +0000 (00:23 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 25 Jan 2013 14:07:35 +0000 (09:07 -0500)
commit90b1dd03e52d125c95007e174028d17e5a01c336
treed7bd28d805c7b88891a98cc9087e0a33a4d18964
parent11d42de681d07884efd7f5b09bd639ee4423093b
glsl: Add gl_uniform_buffer_variable::IndexName field

glGetUniformIndices requires that the block instance index not be
present in the name of queried uniforms.  However,
gl_uniform_buffer_variable::Name will include the instance index.  The
IndexName field is added to handle this difference.

Note that currently IndexName will always point to the same string as
Name.  This will change soon.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
src/glsl/ast_to_hir.cpp
src/glsl/link_uniforms.cpp
src/mesa/main/mtypes.h
src/mesa/main/uniforms.c