[Mesa-dev] [PATCH 6/6] Revert "cso: don't release sampler states that are bound"

Nicolai Hähnle nhaehnle at gmail.com
Fri Dec 16 11:26:04 UTC 2016


Thanks for taking care of this! Patches 4-6 are also:

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 16.12.2016 10:52, Michel Dänzer wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> This reverts commit 6dc96de303290e8d1fc294da478c4f370be98dea. No longer
> necessary with the previous change.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
>  src/gallium/auxiliary/cso_cache/cso_cache.c | 4 +---
>  1 file changed, 1 insertion(+), 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);
>  }
>


More information about the mesa-dev mailing list