v3dv: Add support for the on-disk shader cache
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 18 Mar 2021 21:56:50 +0000 (22:56 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Mar 2021 17:10:47 +0000 (17:10 +0000)
commit74785346b42cb1b377ce9dd0e025aa124e08aec3
tree582e58ba7966ea5971c7e31cdade71b6aebadd8c
parentcf71280d74d044325f9b4f26fa26ca7eb7045507
v3dv: Add support for the on-disk shader cache

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

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9403>
src/broadcom/vulkan/v3dv_device.c
src/broadcom/vulkan/v3dv_pipeline_cache.c
src/broadcom/vulkan/v3dv_private.h