projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2809d70
)
ir_reader: Run ir_validate on the generated IR.
author
Kenneth Graunke
<kenneth@whitecape.org>
Sat, 4 Sep 2010 08:09:43 +0000
(
01:09
-0700)
committer
Kenneth 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
patch
|
blob
|
history
diff --git
a/src/glsl/ir_reader.cpp
b/src/glsl/ir_reader.cpp
index 408c20e88c9e65b51f845f862a1f1013194d94e2..5fe96c8b457e82bc4e578fd7a3f1450b2e4ab8ed 100644
(file)
--- 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