From: Brian Paul Date: Fri, 16 Jan 2015 00:38:39 +0000 (-0700) Subject: nir: fix incorrect argument passed to validate_src() in validate_tex_instr() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0aaaa13ec9b67939d119dcabf6136bc0fcae859d;p=mesa.git nir: fix incorrect argument passed to validate_src() in validate_tex_instr() Silences a compiler warning. Reviewed-by: Connor Abbott --- diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c index 77bc5afa38e..228dce2d0b7 100644 --- a/src/glsl/nir/nir_validate.c +++ b/src/glsl/nir/nir_validate.c @@ -381,7 +381,7 @@ validate_tex_instr(nir_tex_instr *instr, validate_state *state) for (unsigned i = 0; i < instr->num_srcs; i++) { assert(!src_type_seen[instr->src[i].src_type]); src_type_seen[instr->src[i].src_type] = true; - validate_src(&instr->src[i], state); + validate_src(&instr->src[i].src, state); } if (instr->sampler != NULL)