mesa: glGetProgramResourceLocationIndex
authorTapani Pälli <tapani.palli@intel.com>
Thu, 12 Mar 2015 12:08:38 +0000 (14:08 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 16 Apr 2015 04:55:56 +0000 (07:55 +0300)
commit9367ade331e5d0a7724c595e7afb0322caaaddf7
tree61aa6e1cd1aa43f858c3d0a854036e5d88179eec
parente0e4d77f0120865b3ca0a4055358fc87d38d1cfe
mesa: glGetProgramResourceLocationIndex

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

The added functionality can be tested by tests for following
functions that are refactored by later patches:

   GetFragDataIndex

v2: return -1 if output not referenced by fragment stage
    (Ilia Mirkin)

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