summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_to_nir.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-10-03 22:18:09 -0700
committerKenneth Graunke <[email protected]>2016-11-19 12:30:25 -0800
commitc447ca64c13f386474e518e0e8dd523ee24507fe (patch)
tree649321172760704dce72a18668759850512b4524 /src/mesa/program/prog_to_nir.c
parentc4be6e0b8d91746eccf334b9e20861af4036d06a (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/mesa/program/prog_to_nir.c')
-rw-r--r--src/mesa/program/prog_to_nir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index f4eb8b67bbb..2707a075b5d 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -1054,7 +1054,8 @@ prog_to_nir(const struct gl_program *prog,
s->info->num_ssbos = 0;
s->info->num_images = 0;
s->info->uses_texture_gather = false;
- s->info->uses_clip_distance_out = false;
+ s->info->clip_distance_array_size = 0;
+ s->info->cull_distance_array_size = 0;
s->info->separate_shader = false;
fail: