summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/auxiliary/cso_cache
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-01-19 05:42:50 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-01-19 05:42:50 +0000
commit56faf649057abc5a8542492d4d85155fab6a510c (patch)
treeb12fb9173cd629f4860890dca8329a0ffd4e4e0e /lib/mesa/src/gallium/auxiliary/cso_cache
parentbbd5f270dbc4fae005c98375aa4959d3f6b04a4b (diff)
Import Mesa 13.0.3
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/cso_cache')
-rw-r--r--lib/mesa/src/gallium/auxiliary/cso_cache/cso_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/cso_cache/cso_cache.c b/lib/mesa/src/gallium/auxiliary/cso_cache/cso_cache.c
index b240c938d..1f3be4b28 100644
--- a/lib/mesa/src/gallium/auxiliary/cso_cache/cso_cache.c
+++ b/lib/mesa/src/gallium/auxiliary/cso_cache/cso_cache.c
@@ -188,7 +188,9 @@ cso_insert_state(struct cso_cache *sc,
void *state)
{
struct cso_hash *hash = _cso_hash_for_type(sc, type);
- sanitize_hash(sc, hash, type, sc->max_size);
+
+ if (type != CSO_SAMPLER)
+ sanitize_hash(sc, hash, type, sc->max_size);
return cso_hash_insert(hash, hash_key, state);
}