mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
mesa/program: Fix -Wunused-param warning
v2: Don't annotate, but remove the unused ctx parameter Signed-off-by: Gert Wollny <gw.fossdev@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
81d8a0f4a4
commit
ea89843b3d
4 changed files with 4 additions and 6 deletions
|
|
@ -181,7 +181,7 @@ _mesa_parse_arb_vertex_program(struct gl_context *ctx, GLenum target,
|
|||
return;
|
||||
}
|
||||
|
||||
_mesa_optimize_program(ctx, &prog, program);
|
||||
_mesa_optimize_program(&prog, program);
|
||||
|
||||
ralloc_free(program->String);
|
||||
|
||||
|
|
|
|||
|
|
@ -2966,7 +2966,7 @@ get_mesa_program(struct gl_context *ctx,
|
|||
prog->info.fs.depth_layout = shader_program->FragDepthLayout;
|
||||
}
|
||||
|
||||
_mesa_optimize_program(ctx, prog, prog);
|
||||
_mesa_optimize_program(prog, prog);
|
||||
|
||||
/* This has to be done last. Any operation that can cause
|
||||
* prog->ParameterValues to get reallocated (e.g., anything that adds a
|
||||
|
|
|
|||
|
|
@ -1312,8 +1312,7 @@ _mesa_simplify_cmp(struct gl_program * program)
|
|||
* instructions, temp regs, etc.
|
||||
*/
|
||||
void
|
||||
_mesa_optimize_program(struct gl_context *ctx, struct gl_program *program,
|
||||
void *mem_ctx)
|
||||
_mesa_optimize_program(struct gl_program *program, void *mem_ctx)
|
||||
{
|
||||
GLboolean any_change;
|
||||
|
||||
|
|
|
|||
|
|
@ -46,8 +46,7 @@ _mesa_find_temp_intervals(const struct prog_instruction *instructions,
|
|||
GLint intEnd[MAX_PROGRAM_TEMPS]);
|
||||
|
||||
extern void
|
||||
_mesa_optimize_program(struct gl_context *ctx, struct gl_program *program,
|
||||
void *mem_ctx);
|
||||
_mesa_optimize_program(struct gl_program *program, void *mem_ctx);
|
||||
|
||||
extern GLboolean
|
||||
_mesa_constant_fold(struct gl_program *prog);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue