summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-29 15:20:42 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-29 15:20:42 -0700
commit5185a5f7d5654c9202c226015c4daeee43d9b897 (patch)
tree903ae4b09d0368ff77b2a2fee746bb813025ec08 /glsl_parser_extras.h
parent6e659caaa946339a2de3890a8bed091ccb65102a (diff)
Add generate_temporary to generate an anonymous temporary
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 dbe7c17..96c975b 100644
--- a/glsl_parser_extras.h
+++ b/glsl_parser_extras.h
@@ -53,6 +53,9 @@ struct _mesa_glsl_parse_state {
/** Was there an error during compilation? */
bool error;
+
+ /** Index of last generated anonymous temporary. */
+ unsigned temp_index;
};
typedef struct YYLTYPE {