aco/waitcnt: replace wait_cnt::*_cnt with booleans
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 25 Sep 2023 11:22:05 +0000 (12:22 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Sep 2023 13:43:11 +0000 (13:43 +0000)
commit0d0a8c436583045c8a99dab445e0524403635ef2
tree363cdd6030602c1dc914a0f0edca053abaa2418e
parent0288cb0a0c471fbef07d1dfc1cae843c5396d8e1
aco/waitcnt: replace wait_cnt::*_cnt with booleans

Previously, a loop could be revisited until a counter reaches it's
maximum:
loop {
   store()
}
Each visit of that loop would increase vs_cnt until it reaches max.

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