nir/tex_instr: Rename the indirect source type and add an array size
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 5 Dec 2014 22:46:24 +0000 (14:46 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:21 +0000 (07:20 -0800)
commit62ac0ee804027d1a1fa9864e03428ced7bd8510a
treef9b48046395fac7f300f21bc94fa743abd37c305
parent534d145e5ea039d57833395a36eed90721f6b272
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 <cwabbott0@gmail.com>
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_print.c
src/mesa/drivers/dri/i965/brw_fs_nir.cpp