summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cso_cache
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-09-19 15:29:17 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-09-19 15:29:48 -0400
commita0e948f3aaadf56ab206a6b3e597825f2085f6d1 (patch)
tree33dd62de23b5c6ab35d9e75227318f60368bb711 /src/mesa/pipe/cso_cache
parentc9a5ef1a1cdee94fe091cb65ea34e9a9bb8b2190 (diff)
Fix a really stupid mistake that Michel hit. Return proper hash.
Diffstat (limited to 'src/mesa/pipe/cso_cache')
-rw-r--r--src/mesa/pipe/cso_cache/cso_cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/cso_cache/cso_cache.c b/src/mesa/pipe/cso_cache/cso_cache.c
index e87733c7ab..71f0d08726 100644
--- a/src/mesa/pipe/cso_cache/cso_cache.c
+++ b/src/mesa/pipe/cso_cache/cso_cache.c
@@ -74,16 +74,22 @@ static struct cso_hash *_cso_hash_for_type(struct cso_cache *sc, enum cso_cache_
switch(type) {
case CSO_BLEND:
hash = sc->blend_hash;
+ break;
case CSO_SAMPLER:
hash = sc->sampler_hash;
+ break;
case CSO_DEPTH_STENCIL:
hash = sc->depth_stencil_hash;
+ break;
case CSO_RASTERIZER:
hash = sc->rasterizer_hash;
+ break;
case CSO_FRAGMENT_SHADER:
hash = sc->fs_hash;
+ break;
case CSO_VERTEX_SHADER:
hash = sc->vs_hash;
+ break;
}
return hash;