nir: use `nir_variable_clone` in `nir_create_passthrough_gs`
authorantonino <antonino.maniscalco@collabora.com>
Fri, 5 May 2023 09:20:55 +0000 (11:20 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 11:04:41 +0000 (11:04 +0000)
commit78d59ef4b1f3c8e16163b118c220fc40144db6e0
tree7c780708fe693f1ff77b30755e4393191fe4e4fd
parent59ec79a2b838262bd27ed163d3f3ec2830c0d3f5
nir: use `nir_variable_clone` in `nir_create_passthrough_gs`

Some stream out properties where not being copied causing problems in
zink.

Use the appropiate helper instead of copying fields by hand.

Fixes: d0342e28b32 ("nir: Add helper to create passthrough GS shader")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22871>
src/compiler/nir/nir_passthrough_gs.c