<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 6, 2018 at 4:22 PM, Caio Marcelo de Oliveira Filho <span dir="ltr"><<a href="mailto:caio.oliveira@intel.com" target="_blank">caio.oliveira@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> +static nir_variable *<br>
> +intrinsic_get_var(nir_<wbr>intrinsic_instr *intrin, unsigned i)<br>
> +{<br>
> + if (nir_intrinsic_infos[intrin-><wbr>intrinsic].num_variables == 0)<br>
> + return nir_deref_instr_get_variable(<wbr>nir_src_as_deref(intrin->src[<wbr>i]));<br>
> + else<br>
> + return intrin->variables[0]->var;<br>
<br>
</span>Should this be intrin->variables[i]->var?<br></blockquote><div><br></div><div>Yes, yes it should. <br></div></div></div></div>