mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
glsl: add new gl_nir_link_glsl() helper
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>
This commit is contained in:
parent
0e60ea1d67
commit
ed325ac4dd
2 changed files with 14 additions and 0 deletions
|
|
@ -581,3 +581,15 @@ gl_nir_link_spirv(struct gl_context *ctx, struct gl_shader_program *prog,
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ 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,
|
||||
bool fill_parameters);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue