zink: hash in some driver workaround flags to shader cache

these affect shader generation

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30261>
This commit is contained in:
Mike Blumenkrantz
2024-05-14 10:39:28 -04:00
committed by Marge Bot
parent ec3eb87f91
commit d8d53f72da
+3
View File
@@ -301,6 +301,9 @@ disk_cache_init(struct zink_screen *screen)
unsigned shader_debug_flags = zink_debug & ZINK_DEBUG_COMPACT;
_mesa_sha1_update(&ctx, &shader_debug_flags, sizeof(shader_debug_flags));
/* add in these shader keys */
_mesa_sha1_update(&ctx, &screen->driver_compiler_workarounds, sizeof(screen->driver_compiler_workarounds));
/* Some of the driconf options change shaders. Let's just hash the whole
* thing to not forget any (especially as options get added).
*/