glsl: Make check_build_array_max_size externally visible
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 15 Mar 2013 21:09:00 +0000 (14:09 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 8 Apr 2013 22:17:05 +0000 (15:17 -0700)
A future commit will try to use this function in a different file.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast.h
src/glsl/ast_to_hir.cpp

index fcc6b4566cef15cc6cbddae12a64e4986889ee61..3a61f79d71af3511d7987868c59aeb0c9dc676b8 100644 (file)
@@ -857,4 +857,8 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
 void
 emit_function(_mesa_glsl_parse_state *state, ir_function *f);
 
+extern bool
+check_builtin_array_max_size(const char *name, unsigned size,
+                             YYLTYPE loc, struct _mesa_glsl_parse_state *state);
+
 #endif /* AST_H */
index 92065f5b7300c8a3e941f93fe6df20feac929bb6..c9d00b1a63c2071c837431296a5af49d40983a7b 100644 (file)
@@ -904,7 +904,7 @@ get_scalar_boolean_operand(exec_list *instructions,
  * If name refers to a builtin array whose maximum allowed size is less than
  * size, report an error and return true.  Otherwise return false.
  */
-static bool
+bool
 check_builtin_array_max_size(const char *name, unsigned size,
                              YYLTYPE loc, struct _mesa_glsl_parse_state *state)
 {