ir_reader: Run ir_validate on the generated IR.

It's just too easy to get something wrong in hand-written IR.
This commit is contained in:
Kenneth Graunke
2010-09-04 01:09:43 -07:00
parent 2809d70723
commit 79088746a2

View File

@@ -84,6 +84,8 @@ _mesa_glsl_read_ir(_mesa_glsl_parse_state *state, exec_list *instructions,
read_instructions(state, instructions, expr, NULL); read_instructions(state, instructions, expr, NULL);
talloc_free(expr); talloc_free(expr);
validate_ir_tree(instructions);
} }
static void static void