freedreno/ir3/ra: be better at failing
authorRob Clark <robdclark@chromium.org>
Sat, 11 Jul 2020 21:22:08 +0000 (14:22 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 23:26:15 +0000 (23:26 +0000)
commit37e0e0791f2160d1adbd4e685d123478fa8dfef3
treeb3afd4dfb32b53adf6c107a1aabe8ae855564efe
parentafadaaef399498ef72ceb15777d278986e6d8d2c
freedreno/ir3/ra: be better at failing

It doesn't happen much.  But it's annoying when we hit an impossible
condition deep in RA 90% thru a long test run.  Add some ra_assert()/
ra_unreachable() helper macros so we can bail cleanly and fail RA.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5907>
src/freedreno/ir3/ir3_ra.c
src/freedreno/ir3/ir3_ra.h