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>
This commit is contained in:
parent
fcfc4ddfcc
commit
87f03b1662
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue