diff options
author | Timothy Arceri <[email protected]> | 2016-10-19 12:30:09 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-10-26 14:29:36 +1100 |
commit | 81faead818a0b2fde131df019f5dfb0baef49273 (patch) | |
tree | 66610c70a8ed5a963ce927729e8a56115142783d /src/mesa/program/program.h | |
parent | 0ab51f8e164b33c5e3bc6836d0574080ef9d1dd8 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/program/program.h')
-rw-r--r-- | src/mesa/program/program.h | 26 |
1 files changed, 0 insertions, 26 deletions
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 @@ -90,15 +90,6 @@ _mesa_reference_program(struct gl_context *ctx, } 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, struct gl_fragment_program *prog) @@ -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) { |