remove dead program cache code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
+1
-1603
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user