diff options
author | Jason Ekstrand <[email protected]> | 2015-01-09 20:01:13 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:24 -0800 |
commit | 4aa6162f6ecf96c7400c17c310eba0cfd0f5e083 (patch) | |
tree | bf3038964219161441349f7881224dc733a937fe /src/glsl/nir/nir_print.c | |
parent | dcb1acdea00a8f2c29777ff4078832df9d5b40ce (diff) |
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 <[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 7cf2e0b2508..fe5ceeaf035 100644 --- a/src/glsl/nir/nir_print.c +++ b/src/glsl/nir/nir_print.c @@ -402,11 +402,11 @@ print_tex_instr(nir_tex_instr *instr, print_var_state *state, FILE *fp) } for (unsigned i = 0; i < instr->num_srcs; i++) { - print_src(&instr->src[i], fp); + print_src(&instr->src[i].src, fp); fprintf(fp, " "); - switch(instr->src_type[i]) { + switch(instr->src[i].src_type) { case nir_tex_src_coord: fprintf(fp, "(coord)"); break; |