nir: allow nir_lower_clip_halfz to run in geometry shaders
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 8 Jul 2020 16:43:23 +0000 (12:43 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 11 Jul 2020 07:32:25 +0000 (07:32 +0000)
commitb8df1c43d24a73740ddd8702d480eded11287b3f
tree84ecb7ffbb43de14c935f6215ac9e42ecec97536
parent3fe87a583692c644a448e827d4e4fdcf881b4257
nir: allow nir_lower_clip_halfz to run in geometry shaders

the final output of gl_Position needs this transform, and geometry shaders
must write this value for stream 0 if rasterization is enabled

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5851>
src/compiler/nir/nir_lower_clip_halfz.c