diff options
author | Marcin Ĺšlusarz <marcin.slusarz@intel.com> | 2021-11-24 12:38:07 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2021-12-13 08:32:23 +0000 |
commit | 87f03b1662492249b03aa0406024a4c7ef5ebfd1 (patch) | |
tree | 4c330e086211f26aa18fe97e2559ba6e82f5fff6 /src/compiler/nir | |
parent | fcfc4ddfccd5ab998409304c164b73b62bb3c480 (diff) |
nir: limit lower_clip_cull_distance_arrays input to traditional stages
Compute, task, mesh & raytracing stages don't support
ClipDistance/CullDistance as input.
This change is not needed for correctness. Just something I stumbled on.
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14149>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_lower_clip_cull_distance_arrays.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 126e5c87149..26f771817cc 100644 --- a/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c +++ b/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c @@ -128,7 +128,8 @@ nir_lower_clip_cull_distance_arrays(nir_shader *nir) nir->info.stage == MESA_SHADER_MESH) progress |= combine_clip_cull(nir, nir_var_shader_out, true); - if (nir->info.stage > MESA_SHADER_VERTEX) { + if (nir->info.stage > MESA_SHADER_VERTEX && + nir->info.stage <= MESA_SHADER_FRAGMENT) { progress |= combine_clip_cull(nir, nir_var_shader_in, nir->info.stage == MESA_SHADER_FRAGMENT); } |