summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.h
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2015-03-12 13:45:22 +0200
committerTapani Pälli <tapani.palli@intel.com>2015-04-16 07:55:56 +0300
commite0e4d77f0120865b3ca0a4055358fc87d38d1cfe (patch)
tree38e663dd90d25ef851687b3b2920d5061d976953 /src/mesa/main/shaderapi.h
parent2a5a0d19d67b2ccd7eee33a6f3bead66cc2d78ff (diff)
downloadexternal_mesa3d-e0e4d77f0120865b3ca0a4055358fc87d38d1cfe.zip
external_mesa3d-e0e4d77f0120865b3ca0a4055358fc87d38d1cfe.tar.gz
external_mesa3d-e0e4d77f0120865b3ca0a4055358fc87d38d1cfe.tar.bz2
mesa: glGetProgramResourceLocation
Patch adds required helper functions to shaderapi.h and the actual implementation. corresponding Piglit test: arb_program_interface_query-resource-location The added functionality can be tested by tests for following functions that are refactored by later patches: GetAttribLocation GetUniformLocation GetFragDataLocation v2: code cleanup, changes to array element syntax checking (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 7a7e3e9..73ebf60 100644
--- a/src/mesa/main/shaderapi.h
+++ b/src/mesa/main/shaderapi.h
@@ -244,6 +244,10 @@ _mesa_get_program_resource_name(struct gl_shader_program *shProg,
GLsizei bufSize, GLsizei *length,
GLchar *name, const char *caller);
+extern GLint
+_mesa_program_resource_location(struct gl_shader_program *shProg,
+ GLenum interface, const char *name);
+
#ifdef __cplusplus
}
#endif