summaryrefslogtreecommitdiff
path: root/src/mesa/main/mtypes.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-05-22 14:17:32 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-05-22 14:17:32 +0000
commit5ddc53f899598396003ec6c723f8132c76aafe79 (patch)
tree5cbcc879ad55cdc0da34fe00457028a18cb81b81 /src/mesa/main/mtypes.h
parent7e3fa7e837aaf687996abdd8511f6bf32e2c9097 (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.h11
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;
};