Revert "cso: don't release sampler states that are bound"
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 16 Dec 2016 03:11:30 +0000 (12:11 +0900)
committerMichel Dänzer <michel@daenzer.net>
Mon, 19 Dec 2016 08:51:38 +0000 (17:51 +0900)
This reverts commit 6dc96de303290e8d1fc294da478c4f370be98dea. No longer
necessary with the previous change.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/cso_cache/cso_cache.c

index 1f3be4b28c77db9f09f2386a80da402325342170..b240c938dcc7154abaf4365796e18d09eb8e7a73 100644 (file)
@@ -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);
 }