mesa: refactor active attrib queries for glGetProgramiv
authorTapani Pälli <tapani.palli@intel.com>
Thu, 23 Apr 2015 08:13:17 +0000 (11:13 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 24 Apr 2015 10:41:54 +0000 (13:41 +0300)
commita563689a408b7a28c710fb0e382272a0d823f38a
tree11b99353ac3e2153204adc7070508468896e8a3f
parentd5a15a89f081bdd23237b8ba5391a2ebea60468b
mesa: refactor active attrib queries for glGetProgramiv

Main motivation here is to get rid of iterating IR and
encapsulate queries within program resources.
No functional changes.

Piglit tests calling the modified functionality:

   - gl-get-active-attrib-returns-all-inputs
   - glsl-1.50-get-active-attrib-array
   - getactiveattrib

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