projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fade78e
)
glsl2: Check that nodes in a valid tree aren't error-type.
author
Eric Anholt
<eric@anholt.net>
Wed, 21 Jul 2010 00:18:57 +0000
(17:18 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 21 Jul 2010 00:30:10 +0000
(17:30 -0700)
We're good at propagating error types around, but finding when the
first one was triggered can be painful if we aren't paying attention.
src/glsl/ir_validate.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_validate.cpp
b/src/glsl/ir_validate.cpp
index 8a567954a1fc86873c38e4bd63c706903365b8e4..c05edf2ee3d1ae052224bdf4aa7f5abb3d7337c2 100644
(file)
--- a/
src/glsl/ir_validate.cpp
+++ b/
src/glsl/ir_validate.cpp
@@
-37,7
+37,7
@@
#include "ir.h"
#include "ir_hierarchical_visitor.h"
#include "hash_table.h"
-
+#include "glsl_types.h"
class ir_validate : public ir_hierarchical_visitor {
public:
@@
-179,6
+179,7
@@
check_node_type(ir_instruction *ir, void *data)
printf("Instruction node with unset type\n");
ir->print(); printf("\n");
}
+ assert(ir->type != glsl_type::error_type);
}
void