<p dir="ltr">Thanks. This was my bad. :-( I've been meaning to fox it.</p>
<p dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>></p>
<div class="gmail_quote">On May 21, 2016 12:31 AM, "Eduardo Lima Mitev" <<a href="mailto:elima@igalia.com">elima@igalia.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">nir_instr_rewrite_src() expects a nir_src and it is currently being fed a<br>
nir_tex_src. This will crash something.<br>
---<br>
 src/intel/vulkan/anv_nir_apply_pipeline_layout.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c<br>
index ddb099e..6481269 100644<br>
--- a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c<br>
+++ b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c<br>
@@ -163,7 +163,7 @@ lower_tex_deref(nir_tex_instr *tex, nir_deref_var *deref,<br>
           * first-class texture source.<br>
           */<br>
          tex->src[tex->num_srcs].src_type = src_type;<br>
-         nir_instr_rewrite_src(&tex->instr, &tex->src[tex->num_srcs],<br>
+         nir_instr_rewrite_src(&tex->instr, &tex->src[tex->num_srcs].src,<br>
                                nir_src_for_ssa(index));<br>
          tex->num_srcs++;<br>
       } else {<br>
--<br>
2.7.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>