summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/builtin_functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/builtin_functions.h')
-rw-r--r--src/compiler/glsl/builtin_functions.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/compiler/glsl/builtin_functions.h b/src/compiler/glsl/builtin_functions.h
index 50f4f3b1494..ff3d4e9f436 100644
--- a/src/compiler/glsl/builtin_functions.h
+++ b/src/compiler/glsl/builtin_functions.h
@@ -26,8 +26,19 @@
struct gl_shader;
-extern void
-_mesa_glsl_initialize_builtin_functions();
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void
+_mesa_glsl_builtin_functions_init_or_ref();
+
+void
+_mesa_glsl_builtin_functions_decref(void);
+
+#ifdef __cplusplus
+
+} /* extern "C" */
extern ir_function_signature *
_mesa_glsl_find_builtin_function(_mesa_glsl_parse_state *state,
@@ -43,9 +54,6 @@ _mesa_glsl_get_builtin_function_shader(void);
extern ir_function_signature *
_mesa_get_main_function_signature(glsl_symbol_table *symbols);
-extern void
-_mesa_glsl_release_builtin_functions(void);
-
namespace generate_ir {
ir_function_signature *
@@ -71,4 +79,6 @@ udivmod64(void *mem_ctx, builtin_available_predicate avail);
}
+#endif /* __cplusplus */
+
#endif /* BULITIN_FUNCTIONS_H */