summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-12-06 10:54:05 -0800
committerKenneth Graunke <[email protected]>2010-12-06 13:43:22 -0800
commit6fae1e4c4d33769e2f255d50907b5aa0ab80edd4 (patch)
treeccacbb0644e5b987bf0ac986b26e61941e43faaf /src/glsl/ast.h
parentd72cb9c94d0194861df3ca53e7181cfa08fd782a (diff)
glsl: Factor out code which emits a new function into the IR stream.
A future commit will use the newly created function in a second place.
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index e5aa5c1b3b5..a77b522705c 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -714,4 +714,8 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
exec_list *instructions,
struct _mesa_glsl_parse_state *state);
+void
+emit_function(_mesa_glsl_parse_state *state, exec_list *instructions,
+ ir_function *f);
+
#endif /* AST_H */