diff options
author | Dave Airlie <[email protected]> | 2011-06-03 11:05:47 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-06-03 15:26:59 +1000 |
commit | 1dbcb83881f508280ed78dae6834d341936712f2 (patch) | |
tree | d22dab7208ebdd77c0ad8259d7dee62d0f8c5566 /src/gallium/auxiliary/cso_cache/cso_cache.h | |
parent | 970726dd6f9d5361cf7a4002d65ba24ac8baec20 (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.h | 7 |
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); |