diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2016-03-03 16:21:17 -0800 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2016-03-05 13:50:07 -0800 |
commit | 26ed943eb961e3c9cb939097dbbdb5bd547e4302 (patch) | |
tree | 568f4747202d2a6631f7017c26a70f93d1753d4f /src | |
parent | 3baf8af947ab0d4e016f79ed76d0bab78c0294ef (diff) |
anv: Fix shader key hashing
This was copied from inline code to a helper and wasn't updated to hash
a pointer instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_pipeline_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
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? */ |