mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Use the source data type in clone_interlocked().
This commit is contained in:
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
@@ -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))
|
||||||
|
Reference in New Issue
Block a user