radv: move cache check inside insert and search functions
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 15 Mar 2017 01:40:53 +0000 (12:40 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 17 Mar 2017 05:17:10 +0000 (16:17 +1100)
commit4ffdab78b9a497a8b597466bb6151837f71b0c6a
treed6eb2a72bc8efbf1adcf690e112ec1733c26fe5b
parent124ec417f968bfb081b238fdcde04b9aaf9d6a2d
radv: move cache check inside insert and search functions

This will allow us to use fallback in-memory and on-disk caches
should the app not provide a pipeline cache.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_pipeline_cache.c