ac/nir/ngg: Wait for attribute ring stores in mesh shaders.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 22 Aug 2023 20:39:22 +0000 (22:39 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 3 Sep 2023 11:04:35 +0000 (11:04 +0000)
commit93b4f200dead198e680991a1e95bf3d3b58f87bd
tree37b5cd233bfdd6155eef4cf175595d7b3b466abb
parent0721784b78ad85d5c281530858bfb50490d741b9
ac/nir/ngg: Wait for attribute ring stores in mesh shaders.

Make sure that both per-vertex and per-primitive attribute
ring stores are finished before position or primitive export
instructions are executed.

This is necessary because we need to ensure that mesh shader
waves work correctly when they have either vertex-only or
primitive-only waves.

Cc: mesa-stable
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/24574>
src/amd/common/ac_nir_lower_ngg.c