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
161f57f mesa: glGetProgramResourceIndex
src/mesa/main/program_resource.c | 85 ++++++++++++++++++++++++++++++++++-
src/mesa/main/shader_query.cpp | 91 ++++++++++++++++++++++++++++++++++++++
src/mesa/main/shaderapi.h | 8 ++++
3 files changed, 183 insertions(+), 1 deletion(-)
Upstream: cgit.freedesktop.org