[Mesa-dev] [PATCH] nir: fix incorrect argument passed to validate_src() in validate_tex_instr()

Brian Paul brianp at vmware.com
Thu Jan 15 16:39:31 PST 2015


Silences a compiler warning.
---
 src/glsl/nir/nir_validate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c
index 77bc5af..228dce2 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)
-- 
1.9.1



More information about the mesa-dev mailing list