diff options
author | Kristian Høgsberg <[email protected]> | 2010-10-13 11:11:47 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-10-14 08:53:59 -0400 |
commit | 81ccb3e2ce708619f4c23537a237d61bdffdd35f (patch) | |
tree | 5f98c3b1fce750b949191044ddf75b03a5e03da6 /src/mesa/main/vtxfmt.h | |
parent | d6de1f44a0cdcc739d3b319b5f102e1733e5b4e3 (diff) |
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.
Diffstat (limited to 'src/mesa/main/vtxfmt.h')
-rw-r--r-- | src/mesa/main/vtxfmt.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/main/vtxfmt.h b/src/mesa/main/vtxfmt.h index 401eb80a0ad..147385cee96 100644 --- a/src/mesa/main/vtxfmt.h +++ b/src/mesa/main/vtxfmt.h @@ -38,21 +38,12 @@ #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_ */ |