Module: Mesa Branch: master Commit: 79088746a231d361232fc87ab4d578b08c7ce2a7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=79088746a231d361232fc87ab4d578b08c7ce2a7
Author: Kenneth Graunke <[email protected]> Date: Sat Sep 4 01:09:43 2010 -0700 ir_reader: Run ir_validate on the generated IR. It's just too easy to get something wrong in hand-written IR. --- src/glsl/ir_reader.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp index 408c20e..5fe96c8 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 _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
