diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2005-07-11 10:10:38 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2005-07-11 10:10:38 +0000 |
commit | ce721143b4d44d239baefe965e499606149b15cb (patch) | |
tree | 74469b61580b842c8e7d3d8813fc562165d4562b /src/mesa/main/mtypes.h | |
parent | 9311bc253e0942af621b7efab0549ed75c0ce4a8 (diff) |
Cache texenv programs to avoid repeated compilation (Ben Skeggs)
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r-- | src/mesa/main/mtypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 655e30336a..d4f6c1f0d5 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1430,6 +1430,12 @@ struct gl_texture_unit GLboolean ColorTableEnabled; }; +struct texenvprog_cache { + GLuint hash; + void *key; + void *data; + struct texenvprog_cache *next; +}; /** * Texture attribute group (GL_TEXTURE_BIT). @@ -1459,6 +1465,9 @@ struct gl_texture_attrib /** GL_EXT_shared_texture_palette */ GLboolean SharedPalette; struct gl_color_table Palette; + + /** Cached texenv fragment programs */ + struct texenvprog_cache *env_fp_cache; }; |