aco: Implement memory_barrier_tcs_patch.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 6 Mar 2020 12:02:03 +0000 (14:02 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:34:10 +0000 (08:34 +0000)
commitaa5eed673c42cfd20bb49410e10c78b46e405590
treef053509266dc2072a760fe90d2dc40affa0eb062
parenta8d15ab6daf0a07476e9dfabe513c0f1e0f3bf82
aco: Implement memory_barrier_tcs_patch.

TCS outputs are going to be written to LDS, so it
has to use memory_barrier_shared in order to ensure
that it waits for LDS writes.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3964>
src/amd/compiler/aco_instruction_selection.cpp