glsl: fix the type of ir_constant_data::u16
[mesa.git] / src / compiler / glsl / gl_nir_linker.h
index 82c5bf2ab49730f61876204720dbd73abb846d73..9dae03779b91a699afd500cb892733b6fce2b9ca 100644 (file)
@@ -35,9 +35,11 @@ struct gl_nir_linker_options {
    bool fill_parameters;
 };
 
-bool gl_nir_link(struct gl_context *ctx,
-                 struct gl_shader_program *prog,
-                 const struct gl_nir_linker_options *options);
+bool gl_nir_link_spirv(struct gl_context *ctx,
+                       struct gl_shader_program *prog,
+                       const struct gl_nir_linker_options *options);
+
+bool gl_nir_link_glsl(struct gl_context *ctx, struct gl_shader_program *prog);
 
 bool gl_nir_link_uniforms(struct gl_context *ctx,
                           struct gl_shader_program *prog,
@@ -47,11 +49,15 @@ void gl_nir_set_uniform_initializers(struct gl_context *ctx,
                                      struct gl_shader_program *prog);
 
 void nir_build_program_resource_list(struct gl_context *ctx,
-                                     struct gl_shader_program *prog);
+                                     struct gl_shader_program *prog,
+                                     bool rebuild_resourse_list);
 
 void gl_nir_link_assign_atomic_counter_resources(struct gl_context *ctx,
                                                  struct gl_shader_program *prog);
 
+void gl_nir_link_check_atomic_counter_resources(struct gl_context *ctx,
+                                                struct gl_shader_program *prog);
+
 void gl_nir_link_assign_xfb_resources(struct gl_context *ctx,
                                       struct gl_shader_program *prog);