From: Jason Ekstrand Date: Fri, 9 Oct 2015 14:02:57 +0000 (-0700) Subject: nir/prog: Use nir_foreach_variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=635daef76ede735d97e202446d6477b7d2cf2f86;p=mesa.git nir/prog: Use nir_foreach_variable Reviewed-by: Matt Turner Reviewed-by: Iago Toral Quiroga --- diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c index fc00534028f..d9b185461fe 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);