Mesa (master): nir/info: Get rid of uses_interp_var_at_offset
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Sat Jun 4 02:29:49 UTC 2016
Module: Mesa
Branch: master
Commit: 4d3b8318a714c470d12636a41b08bd60688f6c3b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d3b8318a714c470d12636a41b08bd60688f6c3b
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Wed Jun 1 18:29:09 2016 -0700
nir/info: Get rid of uses_interp_var_at_offset
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 at jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/compiler/glsl/glsl_to_nir.cpp | 3 ---
src/compiler/nir/nir.h | 3 ---
src/compiler/nir/nir_gather_info.c | 4 ----
3 files changed, 10 deletions(-)
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
index 63a2cfd..daf237e 100644
--- a/src/compiler/glsl/glsl_to_nir.cpp
+++ b/src/compiler/glsl/glsl_to_nir.cpp
@@ -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);
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 3f9309c..ec7b0c7 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -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;
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c
index 15a9a4f..2d6efd5 100644
--- a/src/compiler/nir/nir_gather_info.c
+++ b/src/compiler/nir/nir_gather_info.c
@@ -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;
}
More information about the mesa-commit
mailing list