radeonsi: add si_screen::use_aco to shader cache key to fix shader cache failures

Cc: mesa-stable

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33046>
This commit is contained in:
Marek Olšák
2025-01-06 10:46:44 -05:00
committed by Marge Bot
parent 1f5220b03d
commit 13edb27ad5

View File

@@ -1107,6 +1107,11 @@ static void si_disk_cache_create(struct si_screen *sscreen)
return;
#endif
/* NIR options depend on si_screen::use_aco, which affects all shaders, including GLSL
* compilation.
*/
_mesa_sha1_update(&ctx, &sscreen->use_aco, sizeof(sscreen->use_aco));
_mesa_sha1_final(&ctx, sha1);
mesa_bytes_to_hex(cache_id, sha1, 20);