From: Marcin Ślusarz Date: Wed, 2 Sep 2020 12:26:41 +0000 (+0200) Subject: intel/fs: add hint how to get more info when shader validation fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=663c4d53771a1b00ed49acb08768fd0c01cb9b8e;p=mesa.git intel/fs: add hint how to get more info when shader validation fails Signed-off-by: Marcin Ślusarz Reviewed-by: Lionel Landwerlin Part-of: --- 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,