freedreno/ir3: Use nir_foreach_variable
authorBoyan Ding <boyan.j.ding@gmail.com>
Fri, 16 Oct 2015 07:15:38 +0000 (15:15 +0800)
committerRob Clark <robclark@freedesktop.org>
Fri, 6 Nov 2015 16:17:53 +0000 (11:17 -0500)
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index 8c9234b3847e1558a532431d05189771c7db9f72..157dc73a3c68c4961f0416624a2fd488faadce28 100644 (file)
@@ -2325,17 +2325,17 @@ emit_instructions(struct ir3_compile *ctx)
        }
 
        /* Setup inputs: */
-       foreach_list_typed(nir_variable, var, node, &ctx->s->inputs) {
+       nir_foreach_variable(var, &ctx->s->inputs) {
                setup_input(ctx, var);
        }
 
        /* Setup outputs: */
-       foreach_list_typed(nir_variable, var, node, &ctx->s->outputs) {
+       nir_foreach_variable(var, &ctx->s->outputs) {
                setup_output(ctx, var);
        }
 
        /* Setup variables (which should only be arrays): */
-       foreach_list_typed(nir_variable, var, node, &ctx->s->globals) {
+       nir_foreach_variable(var, &ctx->s->globals) {
                declare_var(ctx, var);
        }