From 40abf117085fe20d2eb10cc8297e57c00340d1e6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 19 Jul 2019 15:38:49 -0700 Subject: [PATCH] panfrost/midgard: Dump MIR of RA failure Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/midgard_schedule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_schedule.c b/src/panfrost/midgard/midgard_schedule.c index 5c03c53023a..152da8de237 100644 --- a/src/panfrost/midgard/midgard_schedule.c +++ b/src/panfrost/midgard/midgard_schedule.c @@ -702,8 +702,10 @@ schedule_program(compiler_context *ctx) int spill_node = ra_get_best_spill_node(g); - if (spill_node < 0) + if (spill_node < 0) { + mir_print_shader(ctx); assert(0); + } /* Allocate TLS slot */ unsigned spill_slot = spill_count++; -- 2.30.2