v3dv: Add support for the on-disk shader cache

Graphics / Mesa 3D Graphics Library / Mesa - Alejandro PiƱeiro [igalia.com] - 22 March 2021 17:10 UTC

Quoting Jason's commit message (afa8f5892), that also applies here:

"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."

74785346b42 v3dv: Add support for the on-disk shader cache
src/broadcom/vulkan/v3dv_device.c | 31 ++++++++-
src/broadcom/vulkan/v3dv_pipeline_cache.c | 110 +++++++++++++++++++++++++++---
src/broadcom/vulkan/v3dv_private.h | 3 +
3 files changed, 133 insertions(+), 11 deletions(-)

Upstream: cgit.freedesktop.org

  • Share