pan/bi: Stub spilling

Like Midgard.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c
index 7a3b307..33be88a 100644
--- a/src/panfrost/bifrost/bi_ra.c
+++ b/src/panfrost/bifrost/bi_ra.c
@@ -180,6 +180,8 @@
         struct lcra_state *l = NULL;
         bool success = false;
 
+        unsigned iter_count = 100; /* max iterations */
+
         /* For instructions that both read and write from a data register, it's
          * the *same* data register. We enforce that constraint by just doing a
          * quick rewrite. TODO: are there cases where this causes RA to have no
@@ -197,14 +199,12 @@
                 if (l) {
                         lcra_free(l);
                         l = NULL;
+                        unreachable("Spilling not implemented");
                 }
 
                 bi_invalidate_liveness(ctx);
                 l = bi_allocate_registers(ctx, &success);
-
-                /* TODO: Spilling */
-                assert(success);
-        } while(!success);
+        } while(!success && ((iter_count--) > 0));
 
         bi_install_registers(ctx, l);