summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/cso_cache/cso_cache.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-06-03 11:05:47 +1000
committerDave Airlie <[email protected]>2011-06-03 15:26:59 +1000
commit1dbcb83881f508280ed78dae6834d341936712f2 (patch)
treed22dab7208ebdd77c0ad8259d7dee62d0f8c5566 /src/gallium/auxiliary/cso_cache/cso_cache.h
parent970726dd6f9d5361cf7a4002d65ba24ac8baec20 (diff)
cso: move cso hashes to a more table driven scheme
this removes a bad branch pain in the hash table lookup fn. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_cache.h')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_cache.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.h b/src/gallium/auxiliary/cso_cache/cso_cache.h
index fb09b83c623..1b17423c72b 100644
--- a/src/gallium/auxiliary/cso_cache/cso_cache.h
+++ b/src/gallium/auxiliary/cso_cache/cso_cache.h
@@ -86,13 +86,14 @@ extern "C" {
#endif
enum cso_cache_type {
+ CSO_RASTERIZER,
CSO_BLEND,
- CSO_SAMPLER,
CSO_DEPTH_STENCIL_ALPHA,
- CSO_RASTERIZER,
CSO_FRAGMENT_SHADER,
CSO_VERTEX_SHADER,
- CSO_VELEMENTS
+ CSO_SAMPLER,
+ CSO_VELEMENTS,
+ CSO_CACHE_MAX,
};
typedef void (*cso_state_callback)(void *ctx, void *obj);