From 81faead818a0b2fde131df019f5dfb0baef49273 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 19 Oct 2016 12:30:09 +1100 Subject: mesa/i965/i915/r200: eliminate gl_vertex_program Here we move the only field in gl_vertex_program to the ARB program fields in gl_program. Reviewed-by: Jason Ekstrand --- src/mesa/program/program.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/mesa/program/program.h') diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h index a909dcc28d1..5f322da85a6 100644 --- a/src/mesa/program/program.h +++ b/src/mesa/program/program.h @@ -89,15 +89,6 @@ _mesa_reference_program(struct gl_context *ctx, _mesa_reference_program_(ctx, ptr, prog); } -static inline void -_mesa_reference_vertprog(struct gl_context *ctx, - struct gl_vertex_program **ptr, - struct gl_vertex_program *prog) -{ - _mesa_reference_program(ctx, (struct gl_program **) ptr, - (struct gl_program *) prog); -} - static inline void _mesa_reference_fragprog(struct gl_context *ctx, struct gl_fragment_program **ptr, @@ -184,10 +175,6 @@ _mesa_shader_stage_to_program(unsigned stage) } -/* Cast wrappers from gl_program to derived program types. - * (e.g. gl_vertex_program) - */ - static inline struct gl_fragment_program * gl_fragment_program(struct gl_program *prog) { @@ -200,19 +187,6 @@ gl_fragment_program_const(const struct gl_program *prog) return (const struct gl_fragment_program *) prog; } - -static inline struct gl_vertex_program * -gl_vertex_program(struct gl_program *prog) -{ - return (struct gl_vertex_program *) prog; -} - -static inline const struct gl_vertex_program * -gl_vertex_program_const(const struct gl_program *prog) -{ - return (const struct gl_vertex_program *) prog; -} - static inline struct gl_compute_program * gl_compute_program(struct gl_program *prog) { -- cgit v1.2.3