[Mesa-dev] [PATCH v3 026/104] nir: Support deref instructions in propagate_invariant

Caio Marcelo de Oliveira Filho caio.oliveira at intel.com
Fri Apr 6 23:22:17 UTC 2018


> +static nir_variable *
> +intrinsic_get_var(nir_intrinsic_instr *intrin, unsigned i)
> +{
> +   if (nir_intrinsic_infos[intrin->intrinsic].num_variables == 0)
> +      return nir_deref_instr_get_variable(nir_src_as_deref(intrin->src[i]));
> +   else
> +      return intrin->variables[0]->var;

Should this be intrin->variables[i]->var?


Thanks,
Caio


More information about the mesa-dev mailing list