summaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_info.h
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/compiler/shader_info.h
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/compiler/shader_info.h')
-rw-r--r--src/compiler/shader_info.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index f0dfecc6aec..7ea5d9cce1f 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -67,8 +67,11 @@ typedef struct shader_info {
/* Whether or not this shader ever uses textureGather() */
bool uses_texture_gather;
- /* Whether or not this shader uses the gl_ClipDistance output */
- bool uses_clip_distance_out;
+ /* The size of the gl_ClipDistance[] array, if declared. */
+ unsigned clip_distance_array_size;
+
+ /* The size of the gl_CullDistance[] array, if declared. */
+ unsigned cull_distance_array_size;
/* Whether or not separate shader objects were used */
bool separate_shader;