From e1e461d11c0e88539d76db7b74a5f85649b7c547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Thu, 28 Oct 2021 16:28:37 +0200 Subject: [PATCH] nir: Lower cull and clip distance arrays for mesh shaders. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Caio Oliveira Part-of: --- src/compiler/nir/nir_lower_clip_cull_distance_arrays.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c b/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c index 9d863aa4ae4..126e5c87149 100644 --- a/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c +++ b/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c @@ -124,7 +124,8 @@ nir_lower_clip_cull_distance_arrays(nir_shader *nir) { bool progress = false; - if (nir->info.stage <= MESA_SHADER_GEOMETRY) + if (nir->info.stage <= MESA_SHADER_GEOMETRY || + nir->info.stage == MESA_SHADER_MESH) progress |= combine_clip_cull(nir, nir_var_shader_out, true); if (nir->info.stage > MESA_SHADER_VERTEX) {