diff options
author | Jason Ekstrand <[email protected]> | 2014-12-05 14:46:24 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:21 -0800 |
commit | 62ac0ee804027d1a1fa9864e03428ced7bd8510a (patch) | |
tree | f9b48046395fac7f300f21bc94fa743abd37c305 /src/glsl/nir/nir.c | |
parent | 534d145e5ea039d57833395a36eed90721f6b272 (diff) |
nir/tex_instr: Rename the indirect source type and add an array size
In particular, we rename nir_tex_src_sampler_index to _sampler_offset and
add a sampler_array_size field to nir_tex_instr. This way we can pass the
size of sampler arrays through to backends even after removing the variable
information and, with it, the type.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r-- | src/glsl/nir/nir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index e9035d449c3..b15440b0855 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -467,6 +467,10 @@ nir_tex_instr_create(void *mem_ctx, unsigned num_srcs) instr->has_predicate = false; src_init(&instr->predicate); + instr->sampler_index = 0; + instr->sampler_array_size = 0; + instr->sampler = NULL; + return instr; } |