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.
This commit is contained in:
Kenneth Graunke
2010-12-06 10:54:05 -08:00
parent d72cb9c94d
commit 6fae1e4c4d
2 changed files with 26 additions and 18 deletions

View File

@@ -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 */