anv: Add support for the on-disk shader cache
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 30 Jun 2018 00:08:30 +0000 (17:08 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 2 Jul 2018 21:52:05 +0000 (14:52 -0700)
commitafa8f589219440890d3afc42df6a055a15eb676f
treee2d4db18f3bd337402700e862e64b69e980e4a71
parente0f7a3aa5bbece84b37cf844d64b468d3cf926b3
anv: Add support for the on-disk shader cache

The Vulkan API provides a mechanism for applications to cache their own
shaders and manage on-disk pipeline caching themselves.  Generally, this
is what I would recommend to application developers and I've resisted
implementing driver-side transparent caching in the Vulkan driver for a
long time.  However, not all applications do this and, for some
use-cases, it's just not practical.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_pipeline_cache.c
src/intel/vulkan/anv_private.h