[Mesa-dev] [PATCH 2/3] nir/prog: Use nir_foreach_variable

Iago Toral itoral at igalia.com
Mon Oct 12 01:32:00 PDT 2015


Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

On Fri, 2015-10-09 at 07:09 -0700, Jason Ekstrand wrote:
> ---
>  src/mesa/program/prog_to_nir.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
> index fc00534..d9b1854 100644
> --- a/src/mesa/program/prog_to_nir.c
> +++ b/src/mesa/program/prog_to_nir.c
> @@ -923,7 +923,7 @@ ptn_add_output_stores(struct ptn_compile *c)
>  {
>     nir_builder *b = &c->build;
>  
> -   foreach_list_typed(nir_variable, var, node, &b->shader->outputs) {
> +   nir_foreach_variable(var, &b->shader->outputs) {
>        nir_intrinsic_instr *store =
>           nir_intrinsic_instr_create(b->shader, nir_intrinsic_store_var);
>        store->num_components = glsl_get_vector_elements(var->type);




More information about the mesa-dev mailing list