summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.h
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2015-03-12 14:08:38 +0200
committerTapani Pälli <tapani.palli@intel.com>2015-04-16 07:55:56 +0300
commit9367ade331e5d0a7724c595e7afb0322caaaddf7 (patch)
tree61aa6e1cd1aa43f858c3d0a854036e5d88179eec /src/mesa/main/shaderapi.h
parente0e4d77f0120865b3ca0a4055358fc87d38d1cfe (diff)
downloadexternal_mesa3d-9367ade331e5d0a7724c595e7afb0322caaaddf7.zip
external_mesa3d-9367ade331e5d0a7724c595e7afb0322caaaddf7.tar.gz
external_mesa3d-9367ade331e5d0a7724c595e7afb0322caaaddf7.tar.bz2
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>
Diffstat (limited to 'src/mesa/main/shaderapi.h')
-rw-r--r--src/mesa/main/shaderapi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h
index 73ebf60..5046018 100644
--- a/src/mesa/main/shaderapi.h
+++ b/src/mesa/main/shaderapi.h
@@ -248,6 +248,10 @@ extern GLint
_mesa_program_resource_location(struct gl_shader_program *shProg,
GLenum interface, const char *name);
+extern GLint
+_mesa_program_resource_location_index(struct gl_shader_program *shProg,
+ GLenum interface, const char *name);
+
#ifdef __cplusplus
}
#endif