nir: Add nir_foreach_shader_in/out_variable helpers
[mesa.git] / src / intel / compiler / brw_nir_lower_alpha_to_coverage.c
index 660d218e7647bee5b7f61d8f548d93c581e880f6..1eed9cd62b4ce2062ab10f207c49ac9c19ea0e6b 100644 (file)
@@ -89,7 +89,7 @@ brw_nir_lower_alpha_to_coverage(nir_shader *shader)
 
    /* Bail out early if we don't have gl_SampleMask */
    bool is_sample_mask = false;
-   nir_foreach_variable(var, &shader->outputs) {
+   nir_foreach_shader_out_variable(var, shader) {
       if (var->data.location == FRAG_RESULT_SAMPLE_MASK) {
          is_sample_mask = true;
          break;
@@ -115,7 +115,7 @@ brw_nir_lower_alpha_to_coverage(nir_shader *shader)
 
                switch (intr->intrinsic) {
                case nir_intrinsic_store_output:
-                  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;