aco: keep track of which events are used in a barrier
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 11 Feb 2020 16:52:20 +0000 (16:52 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 15:38:13 +0000 (15:38 +0000)
commit9fea90ad5170dd64376d22a14ac88c392813c96c
tree5a99a6a35515c973ecbf468a3a760d74d5a13187
parent3f31c54842d4d2e1e78dad6cab57e45cb616b344
aco: keep track of which events are used in a barrier

And properly handle unordered events so that they always wait for 0.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
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/3774>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3774>
src/amd/compiler/aco_insert_waitcnt.cpp