nir/prog: Use nir_foreach_variable
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 9 Oct 2015 14:02:57 +0000 (07:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Oct 2015 14:31:09 +0000 (07:31 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/program/prog_to_nir.c

index fc00534028fa87958e6092005c71bcd15a7e3c06..d9b185461fe1df0558f1114e0941c01a62f3449b 100644 (file)
@@ -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);