diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-05-22 14:17:32 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-05-22 14:17:32 +0000 |
commit | 5ddc53f899598396003ec6c723f8132c76aafe79 (patch) | |
tree | 5cbcc879ad55cdc0da34fe00457028a18cb81b81 /src/mesa/main/mtypes.h | |
parent | 7e3fa7e837aaf687996abdd8511f6bf32e2c9097 (diff) |
Better caching for texenv programs.
Initialize some values correctly.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r-- | src/mesa/main/mtypes.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index e52e0bae5e..1bafaf3485 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1514,11 +1514,16 @@ struct gl_texture_unit GLboolean ColorTableEnabled; }; -struct texenvprog_cache { +struct texenvprog_cache_item { GLuint hash; void *key; void *data; - struct texenvprog_cache *next; + struct texenvprog_cache_item *next; +}; + +struct texenvprog_cache { + struct texenvprog_cache_item **items; + GLuint size, n_items; }; /** @@ -1551,7 +1556,7 @@ struct gl_texture_attrib struct gl_color_table Palette; /** Cached texenv fragment programs */ - struct texenvprog_cache *env_fp_cache; + struct texenvprog_cache env_fp_cache; }; |