nir/info: Get rid of uses_interp_var_at_offset
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Jun 2016 01:29:09 +0000 (18:29 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Jun 2016 02:29:28 +0000 (19:29 -0700)
We were using this briefly in the i965 driver to trigger recompiles but we
haven't been using it since we switched to the NIR y-transform lowering
pass.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.h
src/compiler/nir/nir_gather_info.c

index 63a2cfdb8b94ffc840bf8c4d4524874867f06122..daf237eee6b9003e05d7e6d90bac7244e54a799a 100644 (file)
@@ -1284,9 +1284,6 @@ nir_visitor::visit(ir_expression *ir)
           intrin->intrinsic == nir_intrinsic_interp_var_at_sample)
          intrin->src[0] = nir_src_for_ssa(evaluate_rvalue(ir->operands[1]));
 
-      if (intrin->intrinsic == nir_intrinsic_interp_var_at_offset)
-         shader->info.uses_interp_var_at_offset = true;
-
       unsigned bit_size =  glsl_get_bit_size(deref->type);
       add_instr(&intrin->instr, deref->type->vector_elements, bit_size);
 
index 3f9309c04dd734cffeea83e4979b56efe9df9d5f..ec7b0c7726d640b7f2977f8a138e45a37fc46e8f 100644 (file)
@@ -1723,9 +1723,6 @@ 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;
 
index 15a9a4f08b4dee8e6e75e7d3d46f911791966671..2d6efd55a68020f2e1d03537d2f7f1b995866bec 100644 (file)
@@ -57,10 +57,6 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader)
       shader->info.gs.uses_end_primitive = 1;
       break;
 
-   case nir_intrinsic_interp_var_at_offset:
-      shader->info.uses_interp_var_at_offset = 1;
-      break;
-
    default:
       break;
    }