[Mesa-dev] [PATCH 06/37] util: add a disk_cache_remove() function

Eric Anholt eric at anholt.net
Tue Jan 24 23:54:25 UTC 2017


Timothy Arceri <t_arceri at yahoo.com.au> writes:

> From: Timothy Arceri <timothy.arceri at collabora.com>
>
> This will be used to remove cache items created with old versions
> of Mesa or other invalid cache items from the cache.

I'm not convinced that removing the item from cache when we get a hit on
everything in the key except for Mesa version is the right way to go.  I
think we should just be hashing the Mesa version in the key so that we
don't hit on mismatched versions.  Then we wouldn't thrash our cache
when we're, say, checking out around different versions of Mesa and
re-pigliting things.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170124/fcec89f7/attachment.sig>


More information about the mesa-dev mailing list