nvk: Cache NIR shaders
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 27 Sep 2023 20:10:22 +0000 (15:10 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Sep 2023 03:55:53 +0000 (03:55 +0000)
commit968cefbff113d3e49c384aafa29d07f4f31a5a80
tree603e89960074302593acbbd1127eec2ee07325a4
parentcdbd86c17625b8803eb4d243eacb3369f720e903
nvk: Cache NIR shaders

We can't cache shader binaries just yet but this at least lets us cache
the output of spirv_to_nir and the initial optimize.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25443>
src/nouveau/vulkan/nvk_compute_pipeline.c
src/nouveau/vulkan/nvk_graphics_pipeline.c
src/nouveau/vulkan/nvk_shader.c
src/nouveau/vulkan/nvk_shader.h