From c4d049f64603d934aed2a75cac86d4a3d4adadb7 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Mon, 17 Aug 2015 12:22:34 -0700 Subject: glsl: Move link_get_main_function_signature to a common location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also rename to _mesa_get_main_function_signature. We will call it near the end of compilation to insert some code into main for initializing some compute shader global variables. Signed-off-by: Jordan Justen Reviewed-by: Tapani Pälli Reviewed-by: Eduardo Lima Mitev --- src/glsl/ir.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glsl/ir.h') diff --git a/src/glsl/ir.h b/src/glsl/ir.h index bb7fa0e0af4..fce72a2d3c4 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -2529,6 +2529,9 @@ _mesa_glsl_find_builtin_function_by_name(const char *name); extern gl_shader * _mesa_glsl_get_builtin_function_shader(void); +extern ir_function_signature * +_mesa_get_main_function_signature(gl_shader *sh); + extern void _mesa_glsl_release_functions(void); -- cgit v1.2.3