Revert "cso: don't release sampler states that are bound"

This reverts commit 6dc96de303. No longer
necessary with the previous change.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Michel Dänzer 2016-12-16 12:11:30 +09:00 committed by Michel Dänzer
parent 95eb5e4eed
commit 52098fada7

View 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);
}