nir: Add a nir->info.uses_interp_var_at_offset flag.

I've added this to nir_gather_info(), but also to glsl_to_nir() as a
temporary measure, since the i965 GL driver today doesn't use
nir_gather_info() yet.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Kenneth Graunke
2016-05-12 23:53:13 -07:00
parent d4d7e1516b
commit 6d65b0c6dc
3 changed files with 10 additions and 0 deletions

View File

@@ -1716,6 +1716,9 @@ typedef struct nir_shader_info {
/* Whether or not this shader ever uses textureGather() */
bool uses_texture_gather;
/** Whether or not this shader uses nir_intrinsic_interp_var_at_offset */
bool uses_interp_var_at_offset;
/* Whether or not this shader uses the gl_ClipDistance output */
bool uses_clip_distance_out;