[Mesa-dev] [PATCH 52/68] i965: always set program id to 0 for on disk cache
Timothy Arceri
timothy.arceri at collabora.com
Wed Jun 1 06:23:33 UTC 2016
We don't care what instance of the program it is we only care if
its the correct binary to load so ignore program id for on disk cache
---
src/mesa/drivers/dri/i965/brw_shader_cache.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_shader_cache.c b/src/mesa/drivers/dri/i965/brw_shader_cache.c
index 625ad3f..9104057 100644
--- a/src/mesa/drivers/dri/i965/brw_shader_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_shader_cache.c
@@ -83,11 +83,13 @@ upload_cached_program(struct brw_context *brw)
"program: %s\n", _mesa_sha1_format(sha1_buf, prog->sha1));
brw_wm_populate_key(brw, &wm_key);
+ wm_key.program_string_id = 0;
_mesa_sha1_compute(&wm_key, sizeof wm_key, sha1);
offset += snprintf(manifest + offset, sizeof(manifest) - offset,
"wm_key: %s\n", _mesa_sha1_format(sha1_buf, sha1));
brw_vs_populate_key(brw, &vs_key);
+ vs_key.program_string_id = 0;
_mesa_sha1_compute(&vs_key, sizeof vs_key, sha1);
offset += snprintf(manifest + offset, sizeof(manifest) - offset,
"vs_key: %s\n", _mesa_sha1_format(sha1_buf, sha1));
--
2.5.5
More information about the mesa-dev
mailing list