[Mesa-dev] [PATCH v1] panfrost/midgard: Skip register allocation if there's no work to do
Tomeu Vizoso
tomeu.vizoso at collabora.com
Thu May 2 09:49:48 UTC 2019
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
src/gallium/drivers/panfrost/midgard/midgard_compile.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
index 348ec861404a..d4d26b9a25e9 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -2058,6 +2058,9 @@ allocate_registers(compiler_context *ctx)
print_mir_block(block);
}
+ if (!ctx->temp_count)
+ return;
+
/* Let's actually do register allocation */
int nodes = ctx->temp_count;
struct ra_graph *g = ra_alloc_interference_graph(regs, nodes);
--
2.20.1
More information about the mesa-dev
mailing list