From 81ccb3e2ce708619f4c23537a237d61bdffdd35f Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Wed, 13 Oct 2010 11:11:47 -0400 Subject: Drop the "neutral" tnl module Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices when necessary. By using the unlikely() macros, this ends up as a 10% performance improvement (for isosurf, anyway) over the old, complicated function pointer swapping. --- src/mesa/main/vtxfmt.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/mesa/main/vtxfmt.h') diff --git a/src/mesa/main/vtxfmt.h b/src/mesa/main/vtxfmt.h index 401eb80a0a..147385cee9 100644 --- a/src/mesa/main/vtxfmt.h +++ b/src/mesa/main/vtxfmt.h @@ -38,20 +38,11 @@ #if FEATURE_beginend -extern void _mesa_init_exec_vtxfmt( struct gl_context *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 ); -extern void _mesa_restore_exec_vtxfmt( struct gl_context *ctx ); - #else /* FEATURE_beginend */ -static INLINE void -_mesa_init_exec_vtxfmt( struct gl_context *ctx ) -{ -} - static INLINE void _mesa_install_exec_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ) { @@ -62,11 +53,6 @@ _mesa_install_save_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ) { } -static INLINE void -_mesa_restore_exec_vtxfmt( struct gl_context *ctx ) -{ -} - #endif /* FEATURE_beginend */ #endif /* _VTXFMT_H_ */ -- cgit v1.2.3