From d74f569035240eb0069e54efa589a3abbb03bfea Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 22 Jan 2025 14:56:43 +0100 Subject: [PATCH] pan/bi: bump iter_count to 2000 Without this, we fail to register-allocate the shader used in the dEQP-VK.ssbo.phys.layout.random.8bit.scalar.78 VK-CTS test case. Yeah, this sucks, but failing to compile sucks even more. We need a new register allocator plan here. Acked-by: Boris Brezillon Part-of: --- src/panfrost/compiler/bi_ra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/compiler/bi_ra.c b/src/panfrost/compiler/bi_ra.c index 257490d154a..486180e2bf0 100644 --- a/src/panfrost/compiler/bi_ra.c +++ b/src/panfrost/compiler/bi_ra.c @@ -1083,7 +1083,7 @@ bi_register_allocate(bi_context *ctx) struct lcra_state *l = NULL; bool success = false; - unsigned iter_count = 1000; /* max iterations */ + unsigned iter_count = 2000; /* max iterations */ /* Number of bytes of memory we've spilled into */ unsigned spill_count = ctx->info.tls_size;