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/shader_info.h | |
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/shader_info.h')
-rw-r--r-- | src/compiler/shader_info.h | 7 |
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; |