ac/nir/ngg: Wait for attribute stores before VS/TES/GS pos0 export.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 22 Aug 2023 19:51:43 +0000 (21:51 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 3 Sep 2023 11:04:35 +0000 (11:04 +0000)
commitedd51655f0eb44178c9e402ae35667bd184adf2a
tree3bed0019ac22c6b5575ee48754b337453084d671
parent9c096e4ace70c0b4f9c390bfc275596b10a0bd72
ac/nir/ngg: Wait for attribute stores before VS/TES/GS pos0 export.

This is a HW bug workaround for some (all?) GFX11 chips.

On these chips, rasterization can start before the attribute ring
stores are finished, which can cause issues.
As a workaround, wait for attribute ring stores to finish
before doing the position export.

Mesh shaders will be taken care of in another commit.

Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Qiang Yu <yuq825@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