nir: allow lower_psiz_mov to run in tessellation stages
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 16 Jul 2020 13:38:46 +0000 (09:38 -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_point_size_mov.c

index 4a7f8085e6f7ae2bfbc391522ace03b1faad0167..f5e18d75baf7026517bfa241540b5c44fcadd08f 100644 (file)
@@ -68,8 +68,8 @@ void
 nir_lower_point_size_mov(nir_shader *shader,
                          const gl_state_index16 *pointsize_state_tokens)
 {
-   assert(shader->info.stage == MESA_SHADER_VERTEX ||
-          shader->info.stage == MESA_SHADER_GEOMETRY);
+   assert(shader->info.stage != MESA_SHADER_FRAGMENT &&
+          shader->info.stage != MESA_SHADER_COMPUTE);
 
    nir_variable *out = NULL;
    nir_foreach_variable(var, &shader->outputs) {