intel: disable FS IR validation in release mode.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 19 Aug 2018 17:15:12 +0000 (10:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2018 01:10:27 +0000 (18:10 -0700)
We probably don't need to iterate, fprintf, and abort in release mode.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_fs_validate.cpp

index 676942c19c00501180efe1f92f2139323a178f0d..75a794fd7940cdd937ee036df6e4a2ed4d94a3bb 100644 (file)
@@ -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
 }