summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-09-04 01:09:43 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-09-04 02:19:38 -0700
commit79088746a231d361232fc87ab4d578b08c7ce2a7 (patch)
tree7609a5a01a70b7fb390844d5848b91e80d9309d1 /src
parent2809d707231fba0e91abe1dd32e9f2d3284b9d3a (diff)
ir_reader: Run ir_validate on the generated IR.
It's just too easy to get something wrong in hand-written IR.
Diffstat (limited to 'src')
-rw-r--r--src/glsl/ir_reader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp
index 408c20e88c..5fe96c8b45 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