X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Fglsl_parser_extras.h;h=1a909c68b7f174bfc5c00f14f54c974f6f8413a9;hb=6a829a1b724ca0d960decee217d260b4de8a5463;hp=d5d5101a8208c1975e59757a093501fa3d01428b;hpb=140632190cf41e6a035ca199b181091d4ed46986;p=mesa.git diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index d5d5101a820..1a909c68b7f 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -51,12 +51,13 @@ struct glsl_switch_state { /** Table of constant values already used in case labels */ struct hash_table *labels_ht; + class ast_case_label *previous_default; bool is_switch_innermost; // if switch stmt is closest to break, ... }; struct _mesa_glsl_parse_state { - _mesa_glsl_parse_state(struct gl_context *ctx, GLenum target, + _mesa_glsl_parse_state(struct gl_context *_ctx, GLenum target, void *mem_ctx); /* Callers of this ralloc-based new need not call delete. It's @@ -76,6 +77,7 @@ struct _mesa_glsl_parse_state { ralloc_free(mem); } + struct gl_context *const ctx; void *scanner; exec_list translation_unit; glsl_symbol_table *symbols; @@ -131,6 +133,7 @@ struct _mesa_glsl_parse_state { unsigned GLSL_110:1; unsigned GLSL_120:1; unsigned GLSL_130:1; + unsigned GLSL_140:1; /*@}*/ } Const;