freedreno/ir3: make compile fails more visible
authorRob Clark <robdclark@chromium.org>
Sat, 11 Jul 2020 20:21:36 +0000 (13:21 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 23:26:15 +0000 (23:26 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5907>

src/freedreno/ir3/ir3_shader.c

index 6ecce8fb2904a6ca47ebdfeb6dbacd28ec926629..146cc352f1c57176f8cc64b735cb47408fcb6fe0 100644 (file)
@@ -176,13 +176,15 @@ compile_variant(struct ir3_shader_variant *v)
 {
        int ret = ir3_compile_shader_nir(v->shader->compiler, v);
        if (ret) {
-               debug_error("compile failed!");
+               _debug_printf("compile failed! (%s:%s)", v->shader->nir->info.name,
+                               v->shader->nir->info.label);
                return false;
        }
 
        assemble_variant(v);
        if (!v->bin) {
-               debug_error("assemble failed!");
+               _debug_printf("assemble failed! (%s:%s)", v->shader->nir->info.name,
+                               v->shader->nir->info.label);
                return false;
        }