util/disk_cache: write cache entry keys to file header
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 21 Mar 2017 05:05:20 +0000 (16:05 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 24 Mar 2017 00:20:09 +0000 (11:20 +1100)
commit0a32b52a27e8530bda1e5048783d37f578c5b3c9
tree0eb65ac0a4e7ea4a55d6750ef65258f9ce972fbf
parent5136c09e700bea2e1becbc32b073cfbbefdec1ec
util/disk_cache: write cache entry keys to file header

This can be used to deal with key hash collisions from different
versions (should we find that to actually happen) and to find
which mesa version produced the cache entry.

V2: use blob created at cache creation.

v3: remove left over var from v1.

Reviewed-by: Grazvydas Ignotas <notasas@gmail.com>
src/util/disk_cache.c