summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-01-15 17:38:39 -0700
committerBrian Paul <[email protected]>2015-01-15 17:41:42 -0700
commit0aaaa13ec9b67939d119dcabf6136bc0fcae859d (patch)
treec41fd821ca1f12d85ef4e27e62b8d9be9ba7a1ac /src/glsl
parentaa479a69d6c9710be4d1c63e706f869bb97ad127 (diff)
nir: fix incorrect argument passed to validate_src() in validate_tex_instr()
Silences a compiler warning. Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/nir_validate.c2
1 files changed, 1 insertions, 1 deletions
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)