dzn: Cache pipeline info
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 22 Jun 2022 08:43:04 +0000 (10:43 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Jun 2022 13:02:23 +0000 (13:02 +0000)
commit91f1bd8f81dff866c769ea3bcc58450b9293b1a4
tree45553eab40e1dff70e26ed2ebbfb9e7b28bcf5c9
parentd8b686783ef9605195c8d85df7f6fa6176e8602b
dzn: Cache pipeline info

We are already caching DXIL shaders individually, but that forces us
to retrieve the NIR shader, do the linking and binding translation
steps, to finally query the cache for each DXIL shader. This pipeline
caching is about skipping those steps when we can.

Note that a graphics/compute pipeline cache entry doesn't contain the
DXIL shaders, but hashes to retrieve those shaders from the same cache.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17140>
src/microsoft/vulkan/dzn_pipeline.c