intel/compiler: print dispatch width when shader fails to compile
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Thu, 2 Jul 2020 11:37:10 +0000 (13:37 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 4 Sep 2020 17:38:25 +0000 (17:38 +0000)
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6602>

src/intel/compiler/brw_fs.cpp

index 93bb3053871de559186f84ea13af88c146f677be..c1d3a6a4627484390e17aac89d743d11cc1a45e7 100644 (file)
@@ -675,7 +675,8 @@ fs_visitor::vfail(const char *format, va_list va)
    failed = true;
 
    msg = ralloc_vasprintf(mem_ctx, format, va);
-   msg = ralloc_asprintf(mem_ctx, "%s compile failed: %s\n", stage_abbrev, msg);
+   msg = ralloc_asprintf(mem_ctx, "SIMD%d %s compile failed: %s\n",
+         dispatch_width, stage_abbrev, msg);
 
    this->fail_msg = msg;