OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55ced33
)
i965: Validate the IR tree after doing our custom optimization passes.
author
Eric Anholt
<eric@anholt.net>
Fri, 27 Aug 2010 19:02:53 +0000
(12:02 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 27 Aug 2010 19:19:17 +0000
(12:19 -0700)
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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index
749a2f2
..
f8b0622
100644
(file)
--- 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);
}