summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-05 17:01:53 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 11:42:36 -0700
commite9d0f265aabb39928d4d8a527684bf3b9eebc21c (patch)
treed9d7946a8314352fe8d510f0db5ec1df3ee760ec /glsl_parser_extras.h
parentc0e76d8352fbe96efb0338e9d98b08494671e504 (diff)
Begin tracking the nesting of loops and switch-statements
Diffstat (limited to 'glsl_parser_extras.h')
-rw-r--r--glsl_parser_extras.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/glsl_parser_extras.h b/glsl_parser_extras.h
index 96c975b..373d295 100644
--- a/glsl_parser_extras.h
+++ b/glsl_parser_extras.h
@@ -56,6 +56,9 @@ struct _mesa_glsl_parse_state {
/** Index of last generated anonymous temporary. */
unsigned temp_index;
+
+ /** Loop or switch statement containing the current instructions. */
+ class ir_instruction *loop_or_switch_nesting;
};
typedef struct YYLTYPE {