aco: fix NIR infinite loops
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 8 Mar 2023 04:15:04 +0000 (05:15 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 8 Mar 2023 16:59:41 +0000 (16:59 +0000)
commitcd1e5b185852eaa67142a3f30baf8c3561aa6b72
tree19c8f0300659a2ea1d763729ee7e76180ca492bd
parent3073810397221bd58ad2a3f80d84d86eeb43dd8e
aco: fix NIR infinite loops

The previous solution breaks potential loop header phis.
Move the dummy-break to the bottom of the loop.

Fixes: dEQP-VK.reconvergence.subgroup_uniform_control_flow_ballot.*
Fixes: a9c4a31d8d8a955711d6f49869090caf87846f1b ('aco: handle NIR loops without breaks')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21736>
src/amd/compiler/aco_instruction_selection.cpp