aco: use s_waitcnt_depctr to mitigate VMEMtoScalarWriteHazard
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 15 Jul 2020 16:08:01 +0000 (17:08 +0100)
committerMarge Bot <eric+marge@anholt.net>
Sat, 18 Jul 2020 00:14:12 +0000 (00:14 +0000)
commitf302ef3853bfcc4dc68205c40f1e7390aff799ab
tree8695968703b07ee9bca9390046094de0613649c6
parentbcf94bb933e8ccc0b91305ed8189a35e8938abbf
aco: use s_waitcnt_depctr to mitigate VMEMtoScalarWriteHazard

Apparently this is potentially faster than v_nop:
https://reviews.llvm.org/D83872

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/5923>
src/amd/compiler/aco_insert_NOPs.cpp