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:
committed by
Marge Bot
parent
ec3eb87f91
commit
d8d53f72da
@@ -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).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user