mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 10:10:09 +01:00
mesa: make _mesa_associate_uniform_storage() static
The function is no longer called directly outside of this file. Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14066>
This commit is contained in:
parent
33cbab854e
commit
d3e0cfaa08
2 changed files with 6 additions and 10 deletions
|
|
@ -2467,10 +2467,10 @@ _mesa_generate_parameters_list_for_uniforms(struct gl_context *ctx,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
_mesa_associate_uniform_storage(struct gl_context *ctx,
|
||||
struct gl_shader_program *shader_program,
|
||||
struct gl_program *prog)
|
||||
static void
|
||||
associate_uniform_storage(struct gl_context *ctx,
|
||||
struct gl_shader_program *shader_program,
|
||||
struct gl_program *prog)
|
||||
{
|
||||
struct gl_program_parameter_list *params = prog->Parameters;
|
||||
gl_shader_stage shader_type = prog->info.stage;
|
||||
|
|
@ -2633,7 +2633,7 @@ _mesa_ensure_and_associate_uniform_storage(struct gl_context *ctx,
|
|||
* prog->ParameterValues to get reallocated (e.g., anything that adds a
|
||||
* program constant) has to happen before creating this linkage.
|
||||
*/
|
||||
_mesa_associate_uniform_storage(ctx, shader_program, prog);
|
||||
associate_uniform_storage(ctx, shader_program, prog);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -2987,7 +2987,7 @@ get_mesa_program(struct gl_context *ctx,
|
|||
* prog->ParameterValues to get reallocated (e.g., anything that adds a
|
||||
* program constant) has to happen before creating this linkage.
|
||||
*/
|
||||
_mesa_associate_uniform_storage(ctx, shader_program, prog);
|
||||
associate_uniform_storage(ctx, shader_program, prog);
|
||||
if (!shader_program->data->LinkStatus) {
|
||||
goto fail_exit;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,10 +46,6 @@ _mesa_generate_parameters_list_for_uniforms(struct gl_context *ctx,
|
|||
struct gl_linked_shader *sh,
|
||||
struct gl_program_parameter_list
|
||||
*params);
|
||||
void
|
||||
_mesa_associate_uniform_storage(struct gl_context *ctx,
|
||||
struct gl_shader_program *shader_program,
|
||||
struct gl_program *prog);
|
||||
|
||||
void
|
||||
_mesa_ensure_and_associate_uniform_storage(struct gl_context *ctx,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue