diff options
author | Kenneth Graunke <[email protected]> | 2016-05-12 23:53:13 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-05-15 23:50:28 -0700 |
commit | 6d65b0c6dc0ef4fad319129fea5fd7b4ad940bec (patch) | |
tree | 35a33c5f1422529cfb18da09e50afbe70477521d /src/compiler/nir/glsl_to_nir.cpp | |
parent | d4d7e1516b4f14b65192ae856a44a2c10788c9fe (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/glsl_to_nir.cpp')
-rw-r--r-- | src/compiler/nir/glsl_to_nir.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/glsl_to_nir.cpp b/src/compiler/nir/glsl_to_nir.cpp index 8a256506f8f..d28fe41ad84 100644 --- a/src/compiler/nir/glsl_to_nir.cpp +++ b/src/compiler/nir/glsl_to_nir.cpp @@ -1277,6 +1277,9 @@ 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); |