radv: add cache items to in memory cache when reading from disk
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 25 Oct 2017 22:35:48 +0000 (09:35 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 30 Oct 2017 06:49:54 +0000 (17:49 +1100)
commit1e84e53712aed4892fbaf98e6f26ffdf76f06165
tree905aeab8ac2503f66435592f4506210be9f40594
parent446c5726ecb968d06a6607e0df42be1cb74948c4
radv: add cache items to in memory cache when reading from disk

Otherwise we will leak them, load duplicates from disk rather
than memory and never write items loaded from disk to the apps
pipeline cache.

Fixes: fd24be134ffd 'radv: make use of on-disk cache'
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline_cache.c