anv: move preprocessing of NIR right before compilation
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 28 Mar 2022 12:35:43 +0000 (15:35 +0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Apr 2023 22:43:37 +0000 (22:43 +0000)
commit16c7c3771862a5cd3655c7f4cc4f3a7d68ef5325
tree5bb5d7241574fe5b8194279185d2c00b513f59c0
parent17e7fe9d975c3b2f295c7a23c69455f57f56b836
anv: move preprocessing of NIR right before compilation

For graphics pipelines, we'll need to load NIR for retained shaders.
We want to avoid as much processing as possible while doing that when
we're able to load ISA from cache.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15637>
src/intel/vulkan/anv_pipeline.c