mesa: Disable validate_ir_tree() on release builds.
authorEric Anholt <eric@anholt.net>
Mon, 18 Mar 2013 15:42:19 +0000 (08:42 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 25 Mar 2013 15:50:38 +0000 (08:50 -0700)
commit712bac1f4130cb2ea75c53698cc6428d93b26ed3
tree9eb808d161b9b57cb08f56f9ea11511c1f0b0aa1
parent92b8a37fdfff9e83f39b8885f51ed2f60326ab6a
mesa: Disable validate_ir_tree() on release builds.

Since half of ir_validate uses asserts() (the other using printf() then
abort()), there's not much use to calling it in a release build.  Cuts
6.3% of the startup time of TF2.

NOTE: This is a candidate for the stable branches.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_validate.cpp
src/glsl/linker.cpp