mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 03:18:08 +02:00
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 <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
ca9a7d975a
commit
cd39ae7394
2 changed files with 5 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue