diff options
author | Paul Berry <stereotype441@gmail.com> | 2012-08-01 17:44:02 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2012-12-06 12:13:21 -0800 |
commit | 53e572f15cb394a8d4f2cd5856dd2a06b6ccd3f0 (patch) | |
tree | 4ea5a88d76cc8fff693b00747c3f526d60cea23b /src/glsl/glsl_symbol_table.h | |
parent | 9a93ba306878693d9157d204743a82becbd5d53e (diff) | |
download | external_mesa3d-53e572f15cb394a8d4f2cd5856dd2a06b6ccd3f0.zip external_mesa3d-53e572f15cb394a8d4f2cd5856dd2a06b6ccd3f0.tar.gz external_mesa3d-53e572f15cb394a8d4f2cd5856dd2a06b6ccd3f0.tar.bz2 |
glsl: Simplify symbol table version checking.
Previously, we stored the GLSL language version in the
glsl_symbol_table struct. But this was unnecessary--all
glsl_symbol_table needs to know is whether functions and variables
have separate namespaces (they do in GLSL 1.10 only).
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Carl Worth <cworth@cworth.org>
Diffstat (limited to 'src/glsl/glsl_symbol_table.h')
-rw-r--r-- | src/glsl/glsl_symbol_table.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/glsl_symbol_table.h b/src/glsl/glsl_symbol_table.h index 637bc03..9f56027 100644 --- a/src/glsl/glsl_symbol_table.h +++ b/src/glsl/glsl_symbol_table.h @@ -77,7 +77,8 @@ public: glsl_symbol_table(); ~glsl_symbol_table(); - unsigned int language_version; + /* In 1.10, functions and variables have separate namespaces. */ + bool separate_function_namespace; void push_scope(); void pop_scope(); |