shipping VkPipelineCache, VkPipelineCache compatibility

Hi!

Currently I am dealing with caching pipelines/warming up pipeline caches and was curious - is it possible to prepare VkPipelineCache and reuse it on other machine (assuming the hardware, OS & driver versions are the same)?


Regards,
Aleksei

Parents
  • If everything is identical it should technically work, but I wouldn't recommend it.

    The main problem will be that device manufacturers often customize the graphics driver, but they often don't change the driver version, so driver version reported through the API is not guaranteed to be an entirely unique identifier. In most cases of a mismatch the cache would just get rejected, forcing a miss and a recompile, but there is a risk that it gets accepted and then doesn't work correctly if the binary ABI was modified.

    HTH, 
    Pete

Reply
  • If everything is identical it should technically work, but I wouldn't recommend it.

    The main problem will be that device manufacturers often customize the graphics driver, but they often don't change the driver version, so driver version reported through the API is not guaranteed to be an entirely unique identifier. In most cases of a mismatch the cache would just get rejected, forcing a miss and a recompile, but there is a risk that it gets accepted and then doesn't work correctly if the binary ABI was modified.

    HTH, 
    Pete

Children