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_print.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_print.c')
-rw-r--r-- | src/glsl/nir/nir_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c index 68d0b6d1117..22a2a1d6557 100644 --- a/src/glsl/nir/nir_print.c +++ b/src/glsl/nir/nir_print.c @@ -464,8 +464,8 @@ print_tex_instr(nir_tex_instr *instr, print_var_state *state, FILE *fp) case nir_tex_src_ddy: fprintf(fp, "(ddy)"); break; - case nir_tex_src_sampler_index: - fprintf(fp, "(sampler_index)"); + case nir_tex_src_sampler_offset: + fprintf(fp, "(sampler_offset)"); break; default: |