glsl_to_nir: fix crashes with int16 shifts
[mesa.git] / src / compiler / nir / nir_lower_alpha_test.c
index b652fb796be71cc427c6c1dca30a019d92dcb4ae..29c520cfd9dc46fc7614cf96ef1bb082265c451e 100644 (file)
@@ -61,7 +61,7 @@ nir_lower_alpha_test(nir_shader *shader, enum compare_func func,
                   break;
                case nir_intrinsic_store_output:
                   /* already had i/o lowered.. lookup the matching output var: */
-                  nir_foreach_variable(var, &shader->outputs) {
+                  nir_foreach_shader_out_variable(var, shader) {
                      int drvloc = var->data.driver_location;
                      if (nir_intrinsic_base(intr) == drvloc) {
                         out = var;