From 54c795f8297d5087b013777bddac32ed47941cb7 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 19 Dec 2019 09:48:39 -0800 Subject: [PATCH] freedreno/ir3: fix crash when no non-input instructions This scenario can come up with block-sched and nop-sched moved to after RA. So lets fix it first to keep things bisectable. Signed-off-by: Rob Clark Part-of: --- src/freedreno/ir3/ir3_ra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_ra.c b/src/freedreno/ir3/ir3_ra.c index 789c08f42ed..3b54bdb1893 100644 --- a/src/freedreno/ir3/ir3_ra.c +++ b/src/freedreno/ir3/ir3_ra.c @@ -775,7 +775,7 @@ ra_block_compute_live_ranges(struct ir3_ra_ctx *ctx, struct ir3_block *block) def(name, id->defn); - if (instr->opc == OPC_META_INPUT) + if ((instr->opc == OPC_META_INPUT) && first_non_input) use(name, first_non_input); if (is_high(id->defn)) { -- 2.30.2