freedreno/ir3/ra: use ir3_debug_print helper
authorRob Clark <robdclark@chromium.org>
Mon, 27 Apr 2020 23:58:18 +0000 (16:58 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 20:06:49 +0000 (20:06 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4780>

src/freedreno/ir3/ir3_ra.c

index 94386ed46942979525cf0a5eed4d0b8c970f2208..d55753085a5fd29549c92dbd32f502eda3fcfc5e 100644 (file)
@@ -1537,20 +1537,14 @@ ir3_ra(struct ir3_shader_variant *v, struct ir3_instruction **precolor,
        if (ret)
                return ret;
 
-       if (ir3_shader_debug & IR3_DBG_OPTMSGS) {
-               printf("AFTER RA (1st pass):\n");
-               ir3_print(v->ir);
-       }
+       ir3_debug_print(v->ir, "AFTER RA (1st pass)");
 
        /* Second pass, assign the scalar registers: */
        ret = ir3_ra_pass(v, precolor, nprecolor, true);
        if (ret)
                return ret;
 
-       if (ir3_shader_debug & IR3_DBG_OPTMSGS) {
-               printf("AFTER RA (2nd pass):\n");
-               ir3_print(v->ir);
-       }
+       ir3_debug_print(v->ir, "AFTER RA (2st pass)");
 
 #ifdef DEBUG
 #  define SANITY_CHECK DEBUG