summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/glsl_to_nir.cpp
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-10-17 22:50:11 +0200
committerMarek Olšák <[email protected]>2015-10-20 12:58:25 +0200
commit67f489ded3a4c575e203dc82368ebe645e72079a (patch)
tree579f430c3b2a5ad57a3fe3d73380b251a25a213f /src/glsl/nir/glsl_to_nir.cpp
parent8339585b1206232c1df165108ef6adadb0829ab0 (diff)
mesa: replace UsesClipDistance with ClipDistanceArraySize
This is more practical and needed by gallium. Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/glsl/nir/glsl_to_nir.cpp')
-rw-r--r--src/glsl/nir/glsl_to_nir.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
index 76e1382c362..c9cdf35d6db 100644
--- a/src/glsl/nir/glsl_to_nir.cpp
+++ b/src/glsl/nir/glsl_to_nir.cpp
@@ -162,7 +162,8 @@ glsl_to_nir(const struct gl_shader_program *shader_prog,
shader->info.outputs_written = sh->Program->OutputsWritten;
shader->info.system_values_read = sh->Program->SystemValuesRead;
shader->info.uses_texture_gather = sh->Program->UsesGather;
- shader->info.uses_clip_distance_out = sh->Program->UsesClipDistanceOut;
+ shader->info.uses_clip_distance_out =
+ sh->Program->ClipDistanceArraySize != 0;
shader->info.separate_shader = shader_prog->SeparateShader;
shader->info.has_transform_feedback_varyings =
shader_prog->TransformFeedback.NumVarying > 0;