summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-19 08:55:54 -0700
committerEric Anholt <[email protected]>2010-07-19 09:50:26 -0700
commitee7b2b3f44d09c2311887d3524e197b9738580a9 (patch)
tree710e72c3ef3130eb25cf6ea977e9edb6971f49d5 /src/mesa
parent4802fd905ae7c1a1122ec71c0556c2b19214a7fd (diff)
ir_to_mesa: Do validation on the IR tree.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index a7799cc01db..84cfff40106 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -2186,6 +2186,8 @@ _mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *shader)
_mesa_ast_to_hir(shader->ir, state);
if (!state->error && !shader->ir->is_empty()) {
+ validate_ir_tree(shader->ir);
+
/* Lowering */
do_mat_op_to_vec(shader->ir);
do_mod_to_fract(shader->ir);
@@ -2213,6 +2215,8 @@ _mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *shader)
progress = do_swizzle_swizzle(shader->ir) || progress;
} while (progress);
+
+ validate_ir_tree(shader->ir);
}
shader->symbols = state->symbols;