aco: fix emitting DEALLOC_VGPRS in the discard block
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 22 Nov 2022 15:49:13 +0000 (16:49 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Nov 2022 19:52:04 +0000 (19:52 +0000)
commitce11c064294540ed5ea09e71c477b2d481b4d3a6
treea4d33cb0da7805a0744cf2b42308657349d5c372
parentc9f0b7b0421bcf1591e5aad2f7292c841ade6d87
aco: fix emitting DEALLOC_VGPRS in the discard block

It should be emitted right before s_endpgm.

Cc: 22.3 mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19931>
src/amd/compiler/aco_lower_to_hw_instr.cpp