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:
@@ -86,7 +86,7 @@ anv_hash_shader(unsigned char *hash, const void *key, size_t key_size,
|
|||||||
struct mesa_sha1 *ctx;
|
struct mesa_sha1 *ctx;
|
||||||
|
|
||||||
ctx = _mesa_sha1_init();
|
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, module->sha1, sizeof(module->sha1));
|
||||||
_mesa_sha1_update(ctx, entrypoint, strlen(entrypoint));
|
_mesa_sha1_update(ctx, entrypoint, strlen(entrypoint));
|
||||||
/* hash in shader stage, pipeline layout? */
|
/* hash in shader stage, pipeline layout? */
|
||||||
|
Reference in New Issue
Block a user