Mesa (master): intel: disable FS IR validation in release mode.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 16 01:15:09 UTC 2018
Module: Mesa
Branch: master
Commit: 8f8111646ce8b52b2249f8657dd788ad49405468
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f8111646ce8b52b2249f8657dd788ad49405468
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Aug 19 10:15:12 2018 -0700
intel: disable FS IR validation in release mode.
We probably don't need to iterate, fprintf, and abort in release mode.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
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 676942c19c..75a794fd79 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
}
More information about the mesa-commit
mailing list