nir: Add a nir_foreach_uniform_variable helper
[mesa.git] / src / intel / vulkan / anv_nir_apply_pipeline_layout.c
index b5b7cd080411c5b01b834d921830283e49307f87..ded0310695b75182801e0bcc8cb87599a11023c9 100644 (file)
@@ -1286,7 +1286,7 @@ anv_nir_apply_pipeline_layout(const struct anv_physical_device *pdevice,
       }
    }
 
-   nir_foreach_variable(var, &shader->uniforms) {
+   nir_foreach_uniform_variable(var, shader) {
       const struct glsl_type *glsl_type = glsl_without_array(var->type);
 
       if (!glsl_type_is_image(glsl_type))