ir_reader: Run ir_validate on the generated IR.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 4 Sep 2010 08:09:43 +0000 (01:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 4 Sep 2010 09:19:38 +0000 (02:19 -0700)
It's just too easy to get something wrong in hand-written IR.

src/glsl/ir_reader.cpp

index 408c20e88c9e65b51f845f862a1f1013194d94e2..5fe96c8b457e82bc4e578fd7a3f1450b2e4ab8ed 100644 (file)
@@ -84,6 +84,8 @@ _mesa_glsl_read_ir(_mesa_glsl_parse_state *state, exec_list *instructions,
 
    read_instructions(state, instructions, expr, NULL);
    talloc_free(expr);
+
+   validate_ir_tree(instructions);
 }
 
 static void