From 1caa94f2a5f156aed22f66942757a37056e74f28 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 28 Dec 2021 19:10:07 -0500 Subject: radeonsi: add into the disk cache key whether cached shaders contain LLVM IR Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state_shaders.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.cpp b/src/gallium/drivers/radeonsi/si_state_shaders.cpp index b473f30001c..9593870ffc7 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.cpp +++ b/src/gallium/drivers/radeonsi/si_state_shaders.cpp @@ -181,6 +181,8 @@ void si_get_ir_cache_key(struct si_shader_selector *sel, bool ngg, bool es, */ if (sel->screen->use_ngg_culling) shader_variant_flags |= 1 << 4; + if (sel->screen->record_llvm_ir) + shader_variant_flags |= 1 << 5; /* bit gap */ -- cgit v1.2.3