mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
remove dead program cache code
This commit is contained in:
parent
8db4acc554
commit
a35a2fc0d3
4 changed files with 1 additions and 1638 deletions
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue