lavapipe: add real VkPipelineCache support
VkPipelineCache
doesn't work on lavapipe:
-
vkGetPipelineCacheData
always gets header only -
vkCreateGraphicsPipelines
andvkCreateComputePipelines
ignores the cache
Lavapipe reports the VkPipelineCache cache is supported, but it doesn't really work.
Also:
- currently there's no way to create cache on Windows for lavapipe (disk cache is not supported on Windows)
- I noticed that code is generated on first pipeline submission instead of pipeline creation (because first submission is very slow - looks like it's compiling)