[Mesa-dev] [PATCH] intel: disable FS IR validation in release mode.
Kenneth Graunke
kenneth at whitecape.org
Mon Oct 15 22:29:30 UTC 2018
We probably don't need to iterate, fprintf, and abort in release mode.
---
src/intel/compiler/brw_fs_validate.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/intel/compiler/brw_fs_validate.cpp b/src/intel/compiler/brw_fs_validate.cpp
index 676942c19c0..75a794fd794 100644
--- a/src/intel/compiler/brw_fs_validate.cpp
+++ b/src/intel/compiler/brw_fs_validate.cpp
@@ -41,6 +41,7 @@
void
fs_visitor::validate()
{
+#ifndef NDEBUG
foreach_block_and_inst (block, fs_inst, inst, cfg) {
if (inst->dst.file == VGRF) {
fsv_assert(inst->dst.offset / REG_SIZE + regs_written(inst) <=
@@ -54,4 +55,5 @@ fs_visitor::validate()
}
}
}
+#endif
}
--
2.19.0
More information about the mesa-dev
mailing list