[Mesa-dev] [PATCH 13/87] i965: always set program id to 0 for on disk cache
Timothy Arceri
timothy.arceri at collabora.com
Wed Jul 13 02:47:08 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 aba45b6..aceaf32 100644
--- a/src/mesa/drivers/dri/i965/brw_shader_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_shader_cache.c
@@ -46,6 +46,7 @@ gen_vs_sha1(struct brw_context *brw, struct gl_shader_program *prog,
offset += snprintf(manifest, sizeof(manifest), "program: %s\n",
_mesa_sha1_format(sha1_buf, prog->sha1));
+ 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));
@@ -67,6 +68,7 @@ gen_wm_sha1(struct brw_context *brw, struct gl_shader_program *prog,
_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));
--
2.7.4
More information about the mesa-dev
mailing list