summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-04-07 15:16:20 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-28 18:14:53 -0700
commite8b399270da7a1201bd544df5bd902ca21cdcbc9 (patch)
treeb062af52b3b48b2b38c862b63e4b75c65269f996 /glsl_parser_extras.cpp
parent34350be2cdb0cb769657d5ce82bc37d906eb3eb5 (diff)
Set language_version to 130 (the max currently supported) when reading IR.
This is necessary so _mesa_glsl_initialize_types can create appropriate glsl_types and add them to the symbol table. In the future, we'll want to set it to the max GLSL version supported by the current driver.
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index 88889d5..efcb125 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -761,6 +761,11 @@ main(int argc, char **argv)
_mesa_ast_to_hir(&instructions, &state);
} else {
+ /* FINISHME: We should initialize this to the max GLSL version supported
+ * FINISHME: by the driver. At the moment, we don't know what that is.
+ */
+ state.language_version = 130;
+
_mesa_glsl_read_ir(&state, &instructions, shader);
}