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 408c20e..5fe96c8 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