[Mesa-stable] [PATCH 2/3] glsl: expose build_program_resource_list function
Tapani Pälli
tapani.palli at intel.com
Tue Sep 1 22:03:36 PDT 2015
This is required so that we can move resource list creation
to happen later.
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Martin Peres <martin.peres at linux.intel.com>
---
src/glsl/linker.cpp | 2 +-
src/glsl/program.h | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index 81ac85d..5ce28c7 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -2682,7 +2682,7 @@ add_interface_variables(struct gl_shader_program *shProg,
* Builds up a list of program resources that point to existing
* resource data.
*/
-static void
+void
build_program_resource_list(struct gl_context *ctx,
struct gl_shader_program *shProg)
{
diff --git a/src/glsl/program.h b/src/glsl/program.h
index f15113a..c06541a 100644
--- a/src/glsl/program.h
+++ b/src/glsl/program.h
@@ -40,6 +40,10 @@ extern void
link_shaders(struct gl_context *ctx, struct gl_shader_program *prog);
extern void
+build_program_resource_list(struct gl_context *ctx,
+ struct gl_shader_program *shProg);
+
+extern void
linker_error(struct gl_shader_program *prog, const char *fmt, ...)
PRINTFLIKE(2, 3);
--
2.1.0
More information about the mesa-stable
mailing list