diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-06-05 01:25:24 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-06-10 14:29:32 -0700 |
commit | 2cb5907508662b46ad4d15b44f3e786f400ee087 (patch) | |
tree | c70d8ab87a63ba015e42c0ec5b7849ca48b18bfa /src/compiler/glsl/glsl_parser_extras.h | |
parent | b7c9fc72fddd76679ca3248dfd0540c69f1790da (diff) |
glsl: Check order and uniqueness of interlock functions
With this commit all remaining compilation tests in Piglit for
ARB_fragment_shader_interlock will pass.
Reviewed-by: Tapani Pälli <[email protected]>
Reviewed-by: Plamena Manolova <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.h')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index dad73e924d8..b82b35da5af 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -605,6 +605,10 @@ struct _mesa_glsl_parse_state { /** Have we found a return statement in this function? */ bool found_return; + /** Have we found the interlock builtins in this function? */ + bool found_begin_interlock; + bool found_end_interlock; + /** Was there an error during compilation? */ bool error; |