From 73afa31f07fe4af605088f6590edc4227652c482 Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Mon, 29 Jun 2015 14:39:05 +0300 Subject: glsl: expose build_program_resource_list function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is required so that we can move resource list creation to happen later. Signed-off-by: Tapani Pälli Reviewed-by: Martin Peres --- src/glsl/linker.cpp | 2 +- src/glsl/program.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/glsl') diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index d9527d4ba2b..e0ce00ce5b9 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -2689,7 +2689,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 f15113a08d2..c06541a6105 100644 --- a/src/glsl/program.h +++ b/src/glsl/program.h @@ -39,6 +39,10 @@ _mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader, 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); -- cgit v1.2.3