diff options
author | Kenneth Graunke <[email protected]> | 2016-10-03 22:18:09 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-11-19 12:30:25 -0800 |
commit | c447ca64c13f386474e518e0e8dd523ee24507fe (patch) | |
tree | 649321172760704dce72a18668759850512b4524 /src/compiler/glsl/glsl_to_nir.cpp | |
parent | c4be6e0b8d91746eccf334b9e20861af4036d06a (diff) |
compiler: Store the clip/cull distance array sizes in shader_info.
We switched from a boolean to array lengths in gl_program a while back.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_to_nir.cpp')
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index e1b8cea600d..90fdd694007 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -150,8 +150,8 @@ glsl_to_nir(const struct gl_shader_program *shader_prog, shader->info->num_textures = util_last_bit(sh->Program->SamplersUsed); shader->info->num_ubos = sh->NumUniformBlocks; shader->info->num_ssbos = sh->NumShaderStorageBlocks; - shader->info->uses_clip_distance_out = - sh->Program->ClipDistanceArraySize != 0; + shader->info->clip_distance_array_size = sh->Program->ClipDistanceArraySize; + shader->info->cull_distance_array_size = sh->Program->CullDistanceArraySize; shader->info->separate_shader = shader_prog->SeparateShader; shader->info->has_transform_feedback_varyings = shader_prog->TransformFeedback.NumVarying > 0; |