aco: fix off-by-one error when initializing sgpr_live_in
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 22 Jan 2020 11:51:31 +0000 (11:51 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jan 2020 17:23:30 +0000 (17:23 +0000)
commit15a1cc00d38db084b41d7ae7907aa0b0c22f2099
treec6a2816e56b1c828133e6c9ddc1cf771b3307880
parentbd51538d285ad0ef488df60e24eaa08b9da20c28
aco: fix off-by-one error when initializing sgpr_live_in

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2394
Fixes: 93c8ebfa780 ('aco: Initial commit of independent AMD compiler')
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3511>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3511>
src/amd/compiler/aco_register_allocation.cpp