Don't call _mesa_glsl_initialize_types for every builtin function.

This was clearly wrong; types are now only initialized once.
This commit is contained in:
Kenneth Graunke
2010-06-08 22:41:30 -07:00
parent 57503a22d7
commit 8331d48948
2 changed files with 1 additions and 7 deletions
+1
View File
@@ -744,6 +744,7 @@ main(int argc, char **argv)
* FINISHME: by the driver. At the moment, we don't know what that is.
*/
state.language_version = 130;
_mesa_glsl_initialize_types(&state);
_mesa_glsl_read_ir(&state, &instructions, shader);
}
-7
View File
@@ -71,13 +71,6 @@ _mesa_glsl_read_ir(_mesa_glsl_parse_state *state, exec_list *instructions,
return;
}
_mesa_glsl_initialize_types(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);
*/
scan_for_prototypes(state, instructions, expr);
if (state->error)
return;