From: Michel Dänzer Date: Fri, 16 Dec 2016 03:11:30 +0000 (+0900) Subject: Revert "cso: don't release sampler states that are bound" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52098fada7e965479490045684b9897c623f5f76;p=mesa.git Revert "cso: don't release sampler states that are bound" This reverts commit 6dc96de303290e8d1fc294da478c4f370be98dea. No longer necessary with the previous change. Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.c b/src/gallium/auxiliary/cso_cache/cso_cache.c index 1f3be4b28c7..b240c938dcc 100644 --- a/src/gallium/auxiliary/cso_cache/cso_cache.c +++ b/src/gallium/auxiliary/cso_cache/cso_cache.c @@ -188,9 +188,7 @@ cso_insert_state(struct cso_cache *sc, void *state) { struct cso_hash *hash = _cso_hash_for_type(sc, type); - - if (type != CSO_SAMPLER) - sanitize_hash(sc, hash, type, sc->max_size); + sanitize_hash(sc, hash, type, sc->max_size); return cso_hash_insert(hash, hash_key, state); }