remove dead program cache code

This commit is contained in:
Brian 2007-10-31 12:34:09 -06:00
parent 8db4acc554
commit a35a2fc0d3
4 changed files with 1 additions and 1638 deletions

View file

@ -61,9 +61,6 @@ _tnl_CreateContext( GLcontext *ctx )
/* Initialize tnl state.
*/
if (ctx->VertexProgram._MaintainTnlProgram) {
#if 0
_tnl_ProgramCacheInit( ctx );
#endif
_tnl_install_pipeline( ctx, _tnl_vp_pipeline );
} else {
_tnl_install_pipeline( ctx, _tnl_default_pipeline );
@ -92,11 +89,6 @@ _tnl_DestroyContext( GLcontext *ctx )
_tnl_destroy_pipeline( ctx );
#if 0
if (ctx->VertexProgram._MaintainTnlProgram)
_tnl_ProgramCacheDestroy( ctx );
#endif
FREE(tnl);
ctx->swtnl_context = NULL;
}

View file

@ -385,19 +385,6 @@ struct tnl_clipspace
};
struct tnl_cache_item {
GLuint hash;
void *key;
void *data;
struct tnl_cache_item *next;
};
struct tnl_cache {
struct tnl_cache_item **items;
GLuint size, n_items;
};
struct tnl_device_driver
{
/***
@ -549,10 +536,6 @@ typedef struct
GLubyte *block[VERT_ATTRIB_MAX];
GLuint nr_blocks;
/* Cache of fixed-function-replacing vertex programs:
*/
struct tnl_cache *vp_cache;
} TNLcontext;

File diff suppressed because it is too large Load diff

View file

@ -37,16 +37,6 @@
_NEW_FOG | \
_NEW_POINT)
#if 0
extern struct gl_vertex_program *
_mesa_get_fixed_func_vertex_program(GLcontext *ctx);
#endif
extern void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx );
#if 0
extern void _tnl_ProgramCacheInit( GLcontext *ctx );
extern void _tnl_ProgramCacheDestroy( GLcontext *ctx );
#endif
#endif