aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-19 22:38:49 (GMT)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-22 15:20:34 (GMT)
commit40abf117085fe20d2eb10cc8297e57c00340d1e6 (patch)
tree01fe8a8a1a2ff2e2e3d3eeb4c23263831e2399cc
parenta08e9511e34e87b445475249df329f9c3e4c4e99 (diff)
downloadexternal_mesa3d-40abf117085fe20d2eb10cc8297e57c00340d1e6.zip
external_mesa3d-40abf117085fe20d2eb10cc8297e57c00340d1e6.tar.gz
external_mesa3d-40abf117085fe20d2eb10cc8297e57c00340d1e6.tar.bz2
panfrost/midgard: Dump MIR of RA failure
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-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 5c03c53..152da8d 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++;