summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-12-16 12:11:30 +0900
committerMichel Dänzer <michel@daenzer.net>2016-12-19 17:51:38 +0900
commit52098fada7e965479490045684b9897c623f5f76 (patch)
treed40bb1176570a11967e39e32bbeaad8435babc3a
parent95eb5e4eed6ef80e44dc4b15f0b8560857dba263 (diff)
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 <nicolai.haehnle@amd.com>
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_cache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.c b/src/gallium/auxiliary/cso_cache/cso_cache.c
index 1f3be4b28c..b240c938dc 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);
}