From 26ed943eb961e3c9cb939097dbbdb5bd547e4302 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Thu, 3 Mar 2016 16:21:17 -0800 Subject: [PATCH] anv: Fix shader key hashing This was copied from inline code to a helper and wasn't updated to hash a pointer instead. --- src/intel/vulkan/anv_pipeline_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index c8ff7e52996..7e20ff74db0 100644 --- a/src/intel/vulkan/anv_pipeline_cache.c +++ b/src/intel/vulkan/anv_pipeline_cache.c @@ -86,7 +86,7 @@ anv_hash_shader(unsigned char *hash, const void *key, size_t key_size, struct mesa_sha1 *ctx; ctx = _mesa_sha1_init(); - _mesa_sha1_update(ctx, &key, sizeof(key)); + _mesa_sha1_update(ctx, key, key_size); _mesa_sha1_update(ctx, module->sha1, sizeof(module->sha1)); _mesa_sha1_update(ctx, entrypoint, strlen(entrypoint)); /* hash in shader stage, pipeline layout? */ -- 2.30.2