aco: improve wait_imm unpack
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 21 Jul 2022 14:12:38 +0000 (15:12 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 30 Sep 2022 20:57:02 +0000 (20:57 +0000)
commit7b21af3f5189ef0613132194a6ee587af5dd05a5
treefa3eea4a96ad2303d2687e7aae8abd076f89b96e
parent39a60676354c4a4371628c28a4dae7039e291223
aco: improve wait_imm unpack

Add GFX11 support and use wait_imm::unset_counter. Looping in the waitcnt
pass was probably broken on GFX11 because of this.

fossil-db (gfx1100):
Totals from 899 (0.56% of 161689) affected shaders:
Instrs: 1319368 -> 1319179 (-0.01%)
CodeSize: 7124640 -> 7123884 (-0.01%)
Latency: 26554304 -> 26404606 (-0.56%)
InvThroughput: 9032485 -> 8978773 (-0.59%); split: -0.59%, +0.00%

No navi10 fossil-db changes.

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/17710>
src/amd/compiler/aco_ir.cpp