util/ra: Sanity check that the driver selected a valid reg.
authorEric Anholt <eric@anholt.net>
Thu, 9 Apr 2020 21:11:51 +0000 (14:11 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 19:46:08 +0000 (19:46 +0000)
commit5bcaf30aba08b718e913b10745df5e92854ed5b6
treea364efd748df05be2502752803c51aed0e704d4b
parentfc66800032946c53a01c979ee3b69ac2ba989222
util/ra: Sanity check that the driver selected a valid reg.

freedreno was returning -1 when it didn't pick a reg from the given bitset
due to an off-by-a-small-number error.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4537>
src/util/register_allocate.c