nir: handle primitives with adjacency
authorantonino <antonino.maniscalco@collabora.com>
Mon, 13 Feb 2023 11:57:38 +0000 (12:57 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 29 Mar 2023 19:18:39 +0000 (19:18 +0000)
commitea14579f3dc3144541c6e5944d14e0e257115b15
treee239fce8c8764c20a430d1d187f08b54bdf536ee
parenteedbf9046e72d253b39e7065424ec6d1f2dbf598
nir: handle primitives with adjacency

`nir_create_passthrough_gs` can now handle primitives with adjacency where some
vertices need to be skipped.

Fixes: d0342e28b32 ("nir: Add helper to create passthrough GS shader")
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_passthrough_gs.c