summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2021-12-28 19:10:07 -0500
committerMarge Bot <emma+marge@anholt.net>2022-01-05 12:46:31 +0000
commit1caa94f2a5f156aed22f66942757a37056e74f28 (patch)
tree00b65ba8ac62f665443e1665fa07ef316d2468dd
parent8ed9d38e73d30b94d829c4b72beceef0ef0c5040 (diff)
radeonsi: add into the disk cache key whether cached shaders contain LLVM IR
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14266>
-rw-r--r--src/gallium/drivers/radeonsi/si_state_shaders.cpp2
1 files changed, 2 insertions, 0 deletions
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 */