ac/nir/ngg: Fix mixed up primitive ID after culling.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 17 Feb 2022 09:57:47 +0000 (10:57 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Feb 2022 18:15:24 +0000 (18:15 +0000)
commit3759a16d8a883355effa435f46867951ce712dbe
tree6e80e8c71448250c026addcf3a6581000cebe5e3
parentc063d8ff649d64038d6828b96bc938db8256f594
ac/nir/ngg: Fix mixed up primitive ID after culling.

When NGG culling is enabled, make sure that the correct
primitive ID is exported by each lane.

Fixes: e97f0463a8f55d5d407178f74b0cdb916a42aef8 "ac/nir: Implement NGG deferred attribute culling in NIR."
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6050
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/15055>
src/amd/common/ac_nir_lower_ngg.c