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 <apinheiro@igalia.com>
This commit is contained in:
@@ -567,7 +567,7 @@ nir_build_program_resource_list(struct gl_context *ctx,
|
||||
}
|
||||
|
||||
bool
|
||||
gl_nir_link(struct gl_context *ctx, struct gl_shader_program *prog,
|
||||
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))
|
||||
|
@@ -35,7 +35,7 @@ struct gl_nir_linker_options {
|
||||
bool fill_parameters;
|
||||
};
|
||||
|
||||
bool gl_nir_link(struct gl_context *ctx,
|
||||
bool gl_nir_link_spirv(struct gl_context *ctx,
|
||||
struct gl_shader_program *prog,
|
||||
const struct gl_nir_linker_options *options);
|
||||
|
||||
|
@@ -272,7 +272,7 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
|
||||
static const gl_nir_linker_options opts = {
|
||||
.fill_parameters = false,
|
||||
};
|
||||
if (!gl_nir_link(ctx, shProg, &opts))
|
||||
if (!gl_nir_link_spirv(ctx, shProg, &opts))
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
@@ -705,7 +705,7 @@ st_link_nir(struct gl_context *ctx,
|
||||
static const gl_nir_linker_options opts = {
|
||||
true /*fill_parameters */
|
||||
};
|
||||
if (!gl_nir_link(ctx, shader_program, &opts))
|
||||
if (!gl_nir_link_spirv(ctx, shader_program, &opts))
|
||||
return GL_FALSE;
|
||||
|
||||
nir_build_program_resource_list(ctx, shader_program, true);
|
||||
|
Reference in New Issue
Block a user