mesa: glGetProgramResourceIndex
authorTapani Pälli <tapani.palli@intel.com>
Tue, 10 Mar 2015 07:30:30 +0000 (09:30 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 16 Apr 2015 04:55:56 +0000 (07:55 +0300)
commit161f57f6103802de55d792bcc6a4370afa5c5173
tree99acd1008bb300817352af3d050366f7b5fe1f0f
parent4d3b98bc5801df27a7f9f2e3df28d66d83f883d9
mesa: glGetProgramResourceIndex

Patch adds required helper functions to shaderapi.h and
the actual implementation.

v2: code cleanup (Ilia Mirkin)

corresponding Piglit test:
   arb_program_interface_query-getprogramresourceindex

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