From: Kristian Høgsberg Kristensen Date: Fri, 4 Mar 2016 00:21:17 +0000 (-0800) Subject: anv: Fix shader key hashing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26ed943eb961e3c9cb939097dbbdb5bd547e4302;p=mesa.git anv: Fix shader key hashing This was copied from inline code to a helper and wasn't updated to hash a pointer instead. --- 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? */