From: Kenneth Graunke Date: Sun, 19 Aug 2018 17:15:12 +0000 (-0700) Subject: intel: disable FS IR validation in release mode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f8111646ce8b52b2249f8657dd788ad49405468;p=mesa.git 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 --- 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 }