Commit 718e9dd1 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz 🏋 Committed by Marge Bot
Browse files

zink: use descriptor info for ubo hashing


Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Part-of: <!12824>
parent 41c3363e
Pipeline #400112 waiting for manual action with stages
......@@ -1504,11 +1504,11 @@ calc_descriptor_state_hash_ubo(struct zink_context *ctx, enum pipe_shader_type s
struct zink_resource *res = ctx->di.descriptor_res[ZINK_DESCRIPTOR_TYPE_UBO][shader][idx];
struct zink_resource_object *obj = res ? res->obj : NULL;
hash = XXH32(&obj, sizeof(void*), hash);
void *hash_data = &ctx->ubos[shader][idx].buffer_size;
void *hash_data = &ctx->di.ubos[shader][idx].range;
size_t data_size = sizeof(unsigned);
hash = XXH32(hash_data, data_size, hash);
if (need_offset)
hash = XXH32(&ctx->ubos[shader][idx].buffer_offset, sizeof(unsigned), hash);
hash = XXH32(&ctx->di.ubos[shader][idx].offset, sizeof(unsigned), hash);
return hash;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment