nir/tex_instr: Add a nir_tex_src struct and dynamically allocate the src array
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 10 Jan 2015 04:01:13 +0000 (20:01 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:24 +0000 (07:20 -0800)
commit4aa6162f6ecf96c7400c17c310eba0cfd0f5e083
treebf3038964219161441349f7881224dc733a937fe
parentdcb1acdea00a8f2c29777ff4078832df9d5b40ce
nir/tex_instr: Add a nir_tex_src struct and dynamically allocate the src array

This solves a number of problems.  First is the ability to change the
number of sources that a texture instruction has.  Second, it solves the
delema that may occur if a texture instruction has more than 4 sources.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/glsl_to_nir.cpp
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_samplers.cpp
src/glsl/nir/nir_print.c
src/glsl/nir/nir_validate.c
src/mesa/drivers/dri/i965/brw_fs_nir.cpp