aco: fix more validation errors from vgpr spill/restore code
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 9 Jul 2020 17:03:21 +0000 (19:03 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 10 Jul 2020 06:28:33 +0000 (08:28 +0200)
commitca51f75f9d341a462b293c367a51584a7a43a1e8
treeb4f742d218f93dfdbda85709c6557aeb130b1e93
parent1af1eb9f7bd61287a74133860606fa146a0d43ac
aco: fix more validation errors from vgpr spill/restore code

It looks like the attempt to fix this in 1e791e51a65 was incomplete.

This fixes crashes with Devil May Cry 5 with a debug build.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5828>
src/amd/compiler/aco_spill.cpp