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>
return;
}
- _mesa_optimize_program(ctx, &prog, program);
+ _mesa_optimize_program(&prog, program);
ralloc_free(program->String);
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
* 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;
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);