aco: Add Primitive Ordered Pixel Shading waitcnt rules
authorVitaliy Triang3l Kuzmin <triang3l@yandex.ru>
Thu, 6 Apr 2023 20:09:35 +0000 (23:09 +0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Jun 2023 15:58:04 +0000 (15:58 +0000)
commite0f4b52559942bb5a1d1b65e5544a2ec2265d227
tree592a2f6cf7839fb05c8d9a2fd97cda37f169fdef
parenta87628cd08860ae8e1e368c50e36f4bf04942531
aco: Add Primitive Ordered Pixel Shading waitcnt rules

When letting the overlapping waves enter their ordered sections, there must
be no memory accesses to resources which need primitive-ordered access that
are still pending, or there would be a race between the current wave and
the overlapping waves.

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Vitaliy Triang3l Kuzmin <triang3l@yandex.ru>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22250>
src/amd/compiler/aco_insert_waitcnt.cpp
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_lower_to_hw_instr.cpp