vkd3d-shader/hlsl: Use the source data type in clone_interlocked().

This commit is contained in:
Anna (navi) Figueiredo Gomes
2025-05-07 15:43:10 +02:00
committed by Henri Verbeet
parent 4a5411aa6e
commit 820430001f
Notes: Henri Verbeet 2025-05-12 15:44:13 +02:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1489

View File

@@ -2687,7 +2687,7 @@ static struct hlsl_ir_node *clone_interlocked(struct hlsl_ctx *ctx,
if (!(dst = hlsl_alloc(ctx, sizeof(*dst)))) if (!(dst = hlsl_alloc(ctx, sizeof(*dst))))
return NULL; return NULL;
init_node(&dst->node, HLSL_IR_INTERLOCKED, NULL, &src->node.loc); init_node(&dst->node, HLSL_IR_INTERLOCKED, src->node.data_type, &src->node.loc);
dst->op = src->op; dst->op = src->op;
if (!clone_deref(ctx, map, &dst->dst, &src->dst)) if (!clone_deref(ctx, map, &dst->dst, &src->dst))