nir_ allow nir_lower_clip_halfz to run in tess eval shader
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 17 Jul 2020 13:46:47 +0000 (09:46 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jul 2020 08:41:17 +0000 (08:41 +0000)
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6027>

src/compiler/nir/nir_lower_clip_halfz.c

index 6db1910362f6616fa1fdff7252cc8d0ac1a689f3..254c49882e4a5fd806dfc08132e0bfcdf730873d 100644 (file)
@@ -57,7 +57,8 @@ void
 nir_lower_clip_halfz(nir_shader *shader)
 {
    if (shader->info.stage != MESA_SHADER_VERTEX &&
-       shader->info.stage != MESA_SHADER_GEOMETRY)
+       shader->info.stage != MESA_SHADER_GEOMETRY &&
+       shader->info.stage != MESA_SHADER_TESS_EVAL)
       return;
 
    nir_foreach_function(function, shader) {