freedreno/ir3/ra: use ir3_debug_print helper

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4780>
This commit is contained in:
Rob Clark
2020-04-27 16:58:18 -07:00
committed by Marge Bot
parent 8b3ac7084a
commit 6313b8d881
+2 -8
View 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