cso: Make sanitize_hash safe for samplers
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 16 Dec 2016 02:17:44 +0000 (11:17 +0900)
committerMichel Dänzer <michel@daenzer.net>
Mon, 19 Dec 2016 08:51:34 +0000 (17:51 +0900)
commit95eb5e4eed6ef80e44dc4b15f0b8560857dba263
tree8443b910ffc181e20a3234394b93c4b8040afd27
parent745e2eaaec1f938184f3e9a2acfacf7e02ce0da8
cso: Make sanitize_hash safe for samplers

Remove currently bound sampler states from the hash table before pruning
entries from the hash table, so they cannot accidentally be deleted by
the pruning.

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