nir: Add helper to create passthrough GS shader

Based on nir_create_passthrough_tcs and d3d12_make_passthrough_gs, this
creates a passthrough geometry shader that can be used by drivers that
needs to emulate some graphics features in the geometry shader.

Reviewed-by: Rob Clark <robclark@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19987>
This commit is contained in:
Erik Faye-Lund
2022-08-29 14:36:09 +02:00
committed by Marge Bot
parent 6f2dbe6da1
commit d0342e28b3
3 changed files with 113 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ files_libnir = files(
'nir_opt_undef.c',
'nir_opt_uniform_atomics.c',
'nir_opt_vectorize.c',
'nir_passthrough_gs.c',
'nir_passthrough_tcs.c',
'nir_phi_builder.c',
'nir_phi_builder.h',