aco/ngg: Implement workgroup reduce / exclusive scan for NGG GS.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 10 Sep 2020 16:37:01 +0000 (18:37 +0200)
committerTimur Kristóf <timur.kristof@gmail.com>
Fri, 9 Oct 2020 13:26:15 +0000 (15:26 +0200)
commit62b5012ec35358a7c109746bfe1da33ca1b04f24
tree09f9053a05d151fb94b0f0e350d643b778640027
parentc29e288fb51c68200211929f5e877b5c66ff9599
aco/ngg: Implement workgroup reduce / exclusive scan for NGG GS.

This function calculates two things at once:

1. The total number of vertices emitted by the threadgroup.
2. Exclusive scan of emitted vertex count accross the threadgroup.

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/6964>
src/amd/compiler/aco_instruction_selection.cpp