zink: don't replace non generated gs
authorantonino <antonino.maniscalco@collabora.com>
Fri, 5 May 2023 11:57:54 +0000 (13:57 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 11:04:41 +0000 (11:04 +0000)
commita4113fd0210129e997331e57b994e346f1c3d76e
tree200de7687082cfe235973544885a40a8a8f21e53
parent83692bfe3013ace7a98ab59cdcbbae878b9c5758
zink: don't replace non generated gs

Zink replaced the gs emulation shader when the primitive type changes,
however it didn't check whether the gs being replaced was generated.

Fixes: eedbf9046e7 ("zink: handle switching between primitives")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22871>
src/gallium/drivers/zink/zink_program.c