venus: shader cache fossilize replay fix
authorJuston Li <justonli@google.com>
Thu, 2 Mar 2023 18:40:03 +0000 (10:40 -0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 4 Mar 2023 05:56:04 +0000 (05:56 +0000)
commit464cae9497978cfc99e2bb13cca2646ee603516e
tree2f700d8b5b5aed2008d8c829853685701fa24173
parent60ae5b106f8d43aa8a97c3d9dacc008df31c5e8d
venus: shader cache fossilize replay fix

venus utilizes the host side shader cache.

This is a WA to generate shader cache files containing headers with
a unique cache id that will change based on host driver identifiers.
This allows fossilize replay to detect if the host side shader cache
is no longer up to date.
The shader cache is destroyed after creating the necessary files and
not utilized by venus.

Signed-off-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21664>
src/virtio/vulkan/vn_device.c