summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-12-11 15:48:32 +1100
committerTimothy Arceri <[email protected]>2020-01-07 08:38:41 +1100
commit432ed13decc3b246deb6dc98e638819deec1b5d3 (patch)
treed6235f8d38696d3c3e88f484075888e11ab4a61e /src/compiler
parent6c1c13e90e67c716ff97ba8c45a5a04c2b57b4a2 (diff)
glsl: rename gl_nir_link() to gl_nir_link_spirv()
A NIR based glsl linking function will be too different to the spirv version to bother attempting any sharing. So lets change the name to be explicit. Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/gl_nir_linker.c4
-rw-r--r--src/compiler/glsl/gl_nir_linker.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/glsl/gl_nir_linker.c b/src/compiler/glsl/gl_nir_linker.c
index 5ad590726f1..07aab9091db 100644
--- a/src/compiler/glsl/gl_nir_linker.c
+++ b/src/compiler/glsl/gl_nir_linker.c
@@ -567,8 +567,8 @@ nir_build_program_resource_list(struct gl_context *ctx,
}
bool
-gl_nir_link(struct gl_context *ctx, struct gl_shader_program *prog,
- const struct gl_nir_linker_options *options)
+gl_nir_link_spirv(struct gl_context *ctx, struct gl_shader_program *prog,
+ const struct gl_nir_linker_options *options)
{
if (!gl_nir_link_uniform_blocks(ctx, prog))
return false;
diff --git a/src/compiler/glsl/gl_nir_linker.h b/src/compiler/glsl/gl_nir_linker.h
index bc7b053119c..944f7744adb 100644
--- a/src/compiler/glsl/gl_nir_linker.h
+++ b/src/compiler/glsl/gl_nir_linker.h
@@ -35,9 +35,9 @@ 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_uniforms(struct gl_context *ctx,
struct gl_shader_program *prog,