nir: Add nir_foreach_shader_in/out_variable helpers
[mesa.git] / src / intel / compiler / brw_fs_nir.cpp
index 15df3dc77634b82999bd21652b024a5aa555a26b..afbb436b95a1a0319fbe71f6a9979e9bb03febf5 100644 (file)
@@ -59,7 +59,7 @@ fs_visitor::nir_setup_outputs()
     * allocating them.  With ARB_enhanced_layouts, multiple output variables
     * may occupy the same slot, but have different type sizes.
     */
-   nir_foreach_variable(var, &nir->outputs) {
+   nir_foreach_shader_out_variable(var, nir) {
       const int loc = var->data.driver_location;
       const unsigned var_vec4s =
          var->data.compact ? DIV_ROUND_UP(glsl_get_length(var->type), 4)