freedreno/a6xx: Silence compiler warnings
[mesa.git] / src / gallium / drivers / vc4 / vc4_program.c
index a0c009f424cce393d114184cd8bccfaec1a75f40..2d0a52bb5fb88a515f3081b1299b0e936d75c86a 100644 (file)
@@ -1598,7 +1598,7 @@ vc4_optimize_nir(struct nir_shader *s)
                 NIR_PASS(progress, s, nir_opt_loop_unroll,
                          nir_var_shader_in |
                          nir_var_shader_out |
-                         nir_var_function);
+                         nir_var_function_temp);
         } while (progress);
 }
 
@@ -2517,7 +2517,7 @@ vc4_shader_state_create(struct pipe_context *pctx,
 
         vc4_optimize_nir(s);
 
-        NIR_PASS_V(s, nir_remove_dead_variables, nir_var_function);
+        NIR_PASS_V(s, nir_remove_dead_variables, nir_var_function_temp);
 
         /* Garbage collect dead instructions */
         nir_sweep(s);