aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-19 15:38:49 -0700
committerAlyssa Rosenzweig <[email protected]>2019-07-22 08:20:34 -0700
commit40abf117085fe20d2eb10cc8297e57c00340d1e6 (patch)
tree01fe8a8a1a2ff2e2e3d3eeb4c23263831e2399cc /src
parenta08e9511e34e87b445475249df329f9c3e4c4e99 (diff)
panfrost/midgard: Dump MIR of RA failure
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/midgard/midgard_schedule.c4
1 files changed, 3 insertions, 1 deletions
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++;