nir/lower_vec_to_movs: Convert to use nir_shader_instructions_pass().
[mesa.git] / src / compiler / glsl / gl_nir_linker.h
index 9dae03779b91a699afd500cb892733b6fce2b9ca..5171a2c68a034f5215a23e5a3b18ca20100b0d2b 100644 (file)
@@ -35,6 +35,11 @@ struct gl_nir_linker_options {
    bool fill_parameters;
 };
 
+#define nir_foreach_gl_uniform_variable(var, shader) \
+   nir_foreach_variable_with_modes(var, shader, nir_var_uniform | \
+                                                nir_var_mem_ubo | \
+                                                nir_var_mem_ssbo)
+
 bool gl_nir_link_spirv(struct gl_context *ctx,
                        struct gl_shader_program *prog,
                        const struct gl_nir_linker_options *options);