anv: Implement VkPipelineCache
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 10 Feb 2016 17:43:03 +0000 (09:43 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 12 Feb 2016 19:53:49 +0000 (11:53 -0800)
commit39a120aefe43f7b664713b5d0aff13f0a2a19168
tree9f6581ba0dc7f8fce8baab8ca9a4e8396fc9acab
parent03bea8fda790592685d33743a5c9ce36b2fa91f0
anv: Implement VkPipelineCache

We hash the input SPIR-V, specialization constants, entrypoint and the
shader key using SHA1 to determine a unique identifier for the
combination. A VkPipelineCache is then a hash table mapping these
identifiers to the corresponding prog_data and kernel data.
src/vulkan/Makefile.am
src/vulkan/anv_device.c
src/vulkan/anv_pipeline.c
src/vulkan/anv_pipeline_cache.c [new file with mode: 0644]
src/vulkan/anv_private.h