radv: Disable NGG for GS with suboptimal output vertex count.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 6 Apr 2022 12:15:50 +0000 (14:15 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Apr 2022 12:35:05 +0000 (12:35 +0000)
commit94706601fa2f52605d6e488f30fad9a0e2440612
tree4cf9a1843dfbdfa857b036fc8c8c92117f46e99f
parent53e83b7031be488e4d120b1d56456ade509e84d3
radv: Disable NGG for GS with suboptimal output vertex count.

When GS has a lot of output vertices: In this case,
the occupancy of NGG GS is very low because API GS invocations
can't even occupy a single Wave32 wave.
Therefore the legacy pipeline performs better here.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6260
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15767>
src/amd/vulkan/radv_pipeline.c