From 663c4d53771a1b00ed49acb08768fd0c01cb9b8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcin=20=C5=9Alusarz?= Date: Wed, 2 Sep 2020 14:26:41 +0200 Subject: [PATCH] intel/fs: add hint how to get more info when shader validation fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Ślusarz Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_fs_generator.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/intel/compiler/brw_fs_generator.cpp b/src/intel/compiler/brw_fs_generator.cpp index e75c8d98337..8328ae6c9f7 100644 --- a/src/intel/compiler/brw_fs_generator.cpp +++ b/src/intel/compiler/brw_fs_generator.cpp @@ -2572,6 +2572,12 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width, } } ralloc_free(disasm_info); +#ifndef NDEBUG + if (!validated && !debug_flag) { + fprintf(stderr, + "Validation failed. Rerun with INTEL_DEBUG=shaders to get more information.\n"); + } +#endif assert(validated); compiler->shader_debug_log(log_data, -- 2.30.2