mesa/glsl: build list of program resources during linking
authorTapani Pälli <tapani.palli@intel.com>
Fri, 6 Mar 2015 07:14:49 +0000 (09:14 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 16 Apr 2015 04:55:35 +0000 (07:55 +0300)
commitc796ce4108ccc4987c24df43606d04a0f3658d44
treee2ea14537b96e6bfbf2244b5c9946fa89ccc9437
parentb297fc27aa93c4af4cf8ecf9702fd0b95d2c4f9a
mesa/glsl: build list of program resources during linking

Patch adds ProgramResourceList to gl_shader_program structure.
List contains references to active program resources and is
constructed during linking phase.

This list will be used by follow-up patches to implement hooks
for GL_ARB_program_interface_query. It can be also used to
implement any of the older shader program query APIs.

v2: code cleanups + note for SSBO and subroutines (Ilia Mirkin)
v3: code cleanups + assert(MESA_SHADER_STAGES < 8) (Martin Peres)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
src/glsl/linker.cpp
src/mesa/main/mtypes.h
src/mesa/main/shaderobj.c