diff options
author | Eric Anholt <[email protected]> | 2012-04-18 13:35:56 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-07-09 11:13:33 -0700 |
commit | 2d03f48a65a666ecdcfaffa3d39ad1b77f2b25b6 (patch) | |
tree | a35c16d15d788dcbd3926e1f59c09ae3c0e822d3 /src/glsl/ast_to_hir.cpp | |
parent | 912a429bc529a017a426f06631b31da1c0eaa3ae (diff) |
glsl: Add parsing for GLSL uniform blocks.
This doesn't do anything with the uniform block declarations yet, so
usage of those uniforms finds them to be undeclared.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 15aa88ea9ef..bbe8f0596f9 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -3989,6 +3989,17 @@ ast_struct_specifier::hir(exec_list *instructions, return NULL; } +ir_rvalue * +ast_uniform_block::hir(exec_list *instructions, + struct _mesa_glsl_parse_state *state) +{ + /* The ast_uniform_block has a list of ast_declarator_lists. We + * need to turn those into ir_variables with an association + * with this uniform block. + */ + return NULL; +} + static void detect_conflicting_assignments(struct _mesa_glsl_parse_state *state, exec_list *instructions) |