diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-10-13 11:11:47 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-10-14 08:53:59 -0400 |
commit | 81ccb3e2ce708619f4c23537a237d61bdffdd35f (patch) | |
tree | 5f98c3b1fce750b949191044ddf75b03a5e03da6 /src/mesa/main/mtypes.h | |
parent | d6de1f44a0cdcc739d3b319b5f102e1733e5b4e3 (diff) | |
download | external_mesa3d-81ccb3e2ce708619f4c23537a237d61bdffdd35f.zip external_mesa3d-81ccb3e2ce708619f4c23537a237d61bdffdd35f.tar.gz external_mesa3d-81ccb3e2ce708619f4c23537a237d61bdffdd35f.tar.bz2 |
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/mtypes.h')
-rw-r--r-- | src/mesa/main/mtypes.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index aace09d..6702032 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2942,32 +2942,6 @@ struct gl_matrix_stack #include "dd.h" -#define NUM_VERTEX_FORMAT_ENTRIES (sizeof(GLvertexformat) / sizeof(void *)) - -/** - * Core Mesa's support for tnl modules: - */ -struct gl_tnl_module -{ - /** - * Vertex format to be lazily swapped into current dispatch. - */ - const GLvertexformat *Current; - - /** - * \name Record of functions swapped out. - * On restore, only need to swap these functions back in. - */ - /*@{*/ - struct { - _glapi_proc * location; - _glapi_proc function; - } Swapped[NUM_VERTEX_FORMAT_ENTRIES]; - GLuint SwapCount; - /*@}*/ -}; - - /** * Display list flags. * Strictly this is a tnl-private concept, but it doesn't seem @@ -3231,9 +3205,6 @@ struct gl_context */ GLboolean mvp_with_dp4; - /** Core tnl module support */ - struct gl_tnl_module TnlModule; - /** * \name Hooks for module contexts. * |