mesa/glsl: Separate parsing logic from _mesa_get_uniform_location.
authorPaul Berry <stereotype441@gmail.com>
Mon, 28 Jan 2013 22:21:59 +0000 (14:21 -0800)
committerPaul Berry <stereotype441@gmail.com>
Mon, 4 Feb 2013 18:36:35 +0000 (10:36 -0800)
commitb92900d26a54ef997f2920d6a7371bb7c9caabf8
tree8d94422c2bfa0284294b2de18233d0033c7581df
parent11bd1b0f589bfeab8fcad5c70adf4c8a665eebc9
mesa/glsl: Separate parsing logic from _mesa_get_uniform_location.

The parsing logic is moved to a new function in the GLSL module,
parse_program_resource_name().  This name was chosen because it should
eventually be useful for handling everything that OpenGL 4.3 calls
"program resources" (e.g. uniforms, vertex inputs, fragment outputs,
and transform feedback varyings).

Future patches will make use of this function for linking transform
feedback varyings.

NOTE: This is a candidate for the 9.1 branch.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/linker.cpp
src/glsl/program.h
src/mesa/main/uniform_query.cpp
src/mesa/main/uniforms.h