summaryrefslogtreecommitdiff
path: root/src/mesa/main/mtypes.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-07-11 10:10:38 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-07-11 10:10:38 +0000
commitce721143b4d44d239baefe965e499606149b15cb (patch)
tree74469b61580b842c8e7d3d8813fc562165d4562b /src/mesa/main/mtypes.h
parent9311bc253e0942af621b7efab0549ed75c0ce4a8 (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.h9
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;
};