X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fvtxfmt.h;h=aac656879bf873ad78eb583c8bc7e66592a78076;hb=f612e55e45402c14b2099238e8d41e911932fd26;hp=fb6c23abe987d059377f59bb962f77b454f300f6;hpb=49d402e275cdaf46de8db5a475dfe00509141195;p=mesa.git diff --git a/src/mesa/main/vtxfmt.h b/src/mesa/main/vtxfmt.h index fb6c23abe98..aac656879bf 100644 --- a/src/mesa/main/vtxfmt.h +++ b/src/mesa/main/vtxfmt.h @@ -33,34 +33,24 @@ #ifndef _VTXFMT_H_ #define _VTXFMT_H_ -#if FEATURE_beginend - -extern void _mesa_init_exec_vtxfmt( GLcontext *ctx ); +#include "compiler.h" +#include "mfeatures.h" +#include "mtypes.h" -extern void _mesa_install_exec_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt ); -extern void _mesa_install_save_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt ); +#if FEATURE_beginend -extern void _mesa_restore_exec_vtxfmt( GLcontext *ctx ); +extern void _mesa_install_exec_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ); +extern void _mesa_install_save_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ); #else /* FEATURE_beginend */ -static INLINE void -_mesa_init_exec_vtxfmt( GLcontext *ctx ) -{ -} - -static INLINE void -_mesa_install_exec_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt ) -{ -} - -static INLINE void -_mesa_install_save_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt ) +static inline void +_mesa_install_exec_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ) { } -static INLINE void -_mesa_restore_exec_vtxfmt( GLcontext *ctx ) +static inline void +_mesa_install_save_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ) { }