This will allow us to do some linking in NIR that was previously
done by the GLSL IR linker. To start with this just has calls for
linking atomics.
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
return true;
}
+
+bool
+gl_nir_link_glsl(struct gl_context *ctx, struct gl_shader_program *prog)
+{
+ gl_nir_link_assign_atomic_counter_resources(ctx, prog);
+ gl_nir_link_check_atomic_counter_resources(ctx, prog);
+
+ if (prog->data->LinkStatus == LINKING_FAILURE)
+ return false;
+
+ return true;
+}
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,
bool fill_parameters);