[Mesa-dev] [PATCH] nir: silence compiler warning from visit_src() call

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


v2: use proper argument
---
 src/glsl/nir/nir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c
index f112db8..81dec1c 100644
--- a/src/glsl/nir/nir.c
+++ b/src/glsl/nir/nir.c
@@ -1541,7 +1541,7 @@ static bool
 visit_tex_src(nir_tex_instr *instr, nir_foreach_src_cb cb, void *state)
 {
    for (unsigned i = 0; i < instr->num_srcs; i++)
-      if (!visit_src(&instr->src[i], cb, state))
+      if (!visit_src(&instr->src[i].src, cb, state))
          return false;
 
    if (instr->sampler != NULL)
-- 
1.9.1



More information about the mesa-dev mailing list