freedreno/ir3: fix crash when no non-input instructions
authorRob Clark <robdclark@chromium.org>
Thu, 19 Dec 2019 17:48:39 +0000 (09:48 -0800)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Feb 2020 02:40:22 +0000 (02:40 +0000)
commit54c795f8297d5087b013777bddac32ed47941cb7
tree86a55248d34e1b833c354be30e21870d90fe5df0
parentc1194e10b2dc4d14ea21eb9bc8e607056ebaffcd
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 <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
src/freedreno/ir3/ir3_ra.c