summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cso_cache/cso_cache.h
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-09-21 07:00:20 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-09-21 07:00:20 -0400
commit6cb87cf26f904b891faa42268f373864fa33541d (patch)
tree3af84bdc648094b7515ed924bd5d3b2f4e03c407 /src/mesa/pipe/cso_cache/cso_cache.h
parentb0fa489eba9170c4b102bf0feb1b1c3f02a34e4e (diff)
Make the alpha test state a cso.
Diffstat (limited to 'src/mesa/pipe/cso_cache/cso_cache.h')
-rw-r--r--src/mesa/pipe/cso_cache/cso_cache.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mesa/pipe/cso_cache/cso_cache.h b/src/mesa/pipe/cso_cache/cso_cache.h
index 2acb58c66b..cd36dd51e9 100644
--- a/src/mesa/pipe/cso_cache/cso_cache.h
+++ b/src/mesa/pipe/cso_cache/cso_cache.h
@@ -40,12 +40,13 @@
struct cso_hash;
struct cso_cache {
+ struct cso_hash *alpha_hash;
struct cso_hash *blend_hash;
- struct cso_hash *sampler_hash;
struct cso_hash *depth_stencil_hash;
- struct cso_hash *rasterizer_hash;
struct cso_hash *fs_hash;
struct cso_hash *vs_hash;
+ struct cso_hash *rasterizer_hash;
+ struct cso_hash *sampler_hash;
};
struct cso_blend {
@@ -78,13 +79,19 @@ struct cso_sampler {
void *data;
};
+struct cso_alpha_test {
+ struct pipe_alpha_test_state state;
+ void *data;
+};
+
enum cso_cache_type {
CSO_BLEND,
CSO_SAMPLER,
CSO_DEPTH_STENCIL,
CSO_RASTERIZER,
CSO_FRAGMENT_SHADER,
- CSO_VERTEX_SHADER
+ CSO_VERTEX_SHADER,
+ CSO_ALPHA_TEST
};
unsigned cso_construct_key(void *item, int item_size);