nir: fix incorrect argument passed to validate_src() in validate_tex_instr()
authorBrian Paul <brianp@vmware.com>
Fri, 16 Jan 2015 00:38:39 +0000 (17:38 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 16 Jan 2015 00:41:42 +0000 (17:41 -0700)
Silences a compiler warning.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_validate.c

index 77bc5afa38e6dc001871e611655c94e1b725c690..228dce2d0b7aed5ee0caad8b2cc68f6fd63c98cb 100644 (file)
@@ -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)