anv: Fix shader key hashing

This was copied from inline code to a helper and wasn't updated to hash
a pointer instead.
This commit is contained in:
Kristian Høgsberg Kristensen
2016-03-03 16:21:17 -08:00
parent 3baf8af947
commit 26ed943eb9

View File

@@ -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? */