Mesa (master): i965: Validate the IR tree after doing our custom optimization passes.

Eric Anholt anholt at kemper.freedesktop.org
Fri Aug 27 19:28:52 UTC 2010


Module: Mesa
Branch: master
Commit: 166b3fa29d4b5af8d4e8c410ed71e4348b65bbd9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=166b3fa29d4b5af8d4e8c410ed71e4348b65bbd9

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 27 12:02:53 2010 -0700

i965: Validate the IR tree after doing our custom optimization passes.

This wouldn't catch the last failure fixed in them, because we don't
validate assignments well (due to the fact that we've got a pretty
glaring inconsistency in how we handle assignment writemasking), but
it could catch other failure we may produce.

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 749a2f2..f8b0622 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -144,6 +144,8 @@ brw_link_shader(GLcontext *ctx, struct gl_shader_program *prog)
 	    progress = do_common_optimization(shader->ir, true) || progress;
 	 } while (progress);
 
+	 validate_ir_tree(shader->ir);
+
 	 reparent_ir(shader->ir, shader->ir);
 	 talloc_free(mem_ctx);
       }




More information about the mesa-commit mailing list