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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user