nir: calculate number of vertices in nir_create_passthrough_gs
authorantonino <antonino.maniscalco@collabora.com>
Fri, 3 Feb 2023 10:23:09 +0000 (11:23 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 29 Mar 2023 19:18:40 +0000 (19:18 +0000)
commita0751e8088d85bd13237e715715f4a0a08ad4175
tree61d90695ae95243ef802173069a2c06065a73fbc
parentedecb66b01849effdf859f3cfaeebb9af5e1c1da
nir: calculate number of vertices in nir_create_passthrough_gs

`nir_create_passthrough_gs` has been changed to take the type of primitive
as opposed to the number of vertices as an argument.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21238>
src/compiler/nir/nir.h
src/compiler/nir/nir_passthrough_gs.c
src/gallium/drivers/zink/zink_program.c