aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-12-19 09:48:39 -0800
committerMarge Bot <[email protected]>2020-02-01 02:40:22 +0000
commit54c795f8297d5087b013777bddac32ed47941cb7 (patch)
tree86a55248d34e1b833c354be30e21870d90fe5df0 /src
parentc1194e10b2dc4d14ea21eb9bc8e607056ebaffcd (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/ir3/ir3_ra.c2
1 files changed, 1 insertions, 1 deletions
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)) {