glsl: move common link time optimisation calls to linker code

In the following patch we will move the users of this function to
this file too and make it static again.

Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16770>
This commit is contained in:
Timothy Arceri
2022-05-31 09:44:21 +10:00
committed by Marge Bot
parent 64dbc3f03a
commit a14e2733ce
3 changed files with 45 additions and 43 deletions

View File

@@ -54,6 +54,8 @@ struct gl_nir_linker_options {
void gl_nir_opts(nir_shader *nir);
void gl_nir_link_opts(nir_shader *producer, nir_shader *consumer);
bool gl_nir_link_spirv(const struct gl_constants *consts,
struct gl_shader_program *prog,
const struct gl_nir_linker_options *options);