radv: Fix gs_vgpr_comp_cnt for NGG VS without passthrough mode.
authorTimur Kristóf <timur.kristof@gmail.com>
Sat, 9 Apr 2022 20:00:10 +0000 (22:00 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Apr 2022 15:04:26 +0000 (15:04 +0000)
commite02c71d6c53fda3fee295f93009c0e5f656e5f8b
tree5ccbce6b8a64cba09422eaecd3fcf9516110f2cf
parenta7147ef1e86af5dbc39371885664f05030b3b418
radv: Fix gs_vgpr_comp_cnt for NGG VS without passthrough mode.

When not in passthrough mode, the NGG shader needs to calculate the
primitive export value from the input primitive's vertex indices.

So, GS vertex offset 2 is needed when NGG has triangles
and isn't in passthrough mode.

Fixes: 7ad69e2f7ee10c0e7afc302b9324e7a320424dcb "radv: stop loading invocation ID for NGG vertex shaders"
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15837>
src/amd/vulkan/radv_shader.c