compiler: Move gl_program::TexelFetchSamplers to shader_info.

I'd like to put this sort of metadata in the shader_info structure,
rather than adding more things to gl_program.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Kenneth Graunke
2017-09-09 00:19:57 -07:00
parent fb972ed4e5
commit fbf4c2916c
4 changed files with 6 additions and 3 deletions

View File

@@ -70,6 +70,9 @@ typedef struct shader_info {
/* Whether or not this shader ever uses textureGather() */
bool uses_texture_gather;
/** Bitfield of which textures are used by texelFetch() */
uint32_t textures_used_by_txf;
/* The size of the gl_ClipDistance[] array, if declared. */
unsigned clip_distance_array_size;