From: Kenneth Graunke Date: Sat, 4 Sep 2010 08:09:43 +0000 (-0700) Subject: ir_reader: Run ir_validate on the generated IR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79088746a231d361232fc87ab4d578b08c7ce2a7;p=mesa.git ir_reader: Run ir_validate on the generated IR. It's just too easy to get something wrong in hand-written IR. --- diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp index 408c20e88c9..5fe96c8b457 100644 --- a/src/glsl/ir_reader.cpp +++ b/src/glsl/ir_reader.cpp @@ -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