summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-04-21 17:50:16 -0700
committerIan Romanick <[email protected]>2010-04-28 18:14:54 -0700
commitddf5a011e2c4c9fd65d5d08aaaa284759fcd2f6e (patch)
treef7008d862ffb735dfbdb6f6bd810100a93a6d389
parent4ec982fb86ae2476508d2027464241489243a170 (diff)
ir_reader: Don't initialize globals, builtins, or constructors.
All of these are currently emitted as part of the IR, so by initializing them, we actually end up with two copies. For constructors, we may eventually wish to avoid emitting them as part of the IR output.
-rw-r--r--ir_reader.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ir_reader.cpp b/ir_reader.cpp
index 8e470e95d26..eb7b7fcb6b3 100644
--- a/ir_reader.cpp
+++ b/ir_reader.cpp
@@ -63,9 +63,11 @@ _mesa_glsl_read_ir(_mesa_glsl_parse_state *state, exec_list *instructions,
printf("\n-------------\n");
_mesa_glsl_initialize_types(state);
- _mesa_glsl_initialize_variables(instructions, state);
- _mesa_glsl_initialize_constructors(instructions, state);
- _mesa_glsl_initialize_functions(instructions, state);
+
+ /* FINISHME: Constructors probably shouldn't be emitted as part of the IR.
+ * FINISHME: Once they're not, remake them by calling:
+ * FINISHME: _mesa_glsl_initialize_constructors(instructions, state);
+ */
read_instructions(state, instructions, expr, NULL);
}