Module: Mesa
Branch: master
Commit: cd39ae73944333690d72c4356ac45675fecef958
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd39ae73944333690d72c4356ac45675fecef958

Author: Ian Romanick <[email protected]>
Date:   Fri Mar 15 14:09:00 2013 -0700

glsl: Make check_build_array_max_size externally visible

A future commit will try to use this function in a different file.

Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>

---

 src/glsl/ast.h          |    4 ++++
 src/glsl/ast_to_hir.cpp |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index fcc6b45..3a61f79 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -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 */
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 92065f5..c9d00b1 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -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)
 {

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to