mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/dxil: Generate SSA values in sm6_parser_emit_cmpxchg().
This commit is contained in:
committed by
Henri Verbeet
parent
326f3624d9
commit
7c344bdfd0
Notes:
Henri Verbeet
2025-05-06 19:05:57 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1483
@@ -7116,14 +7116,14 @@ static void sm6_parser_emit_cmpxchg(struct sm6_parser *sm6, const struct dxil_re
|
|||||||
src_param_init_from_value(&src_params[1], cmp);
|
src_param_init_from_value(&src_params[1], cmp);
|
||||||
src_param_init_from_value(&src_params[2], new);
|
src_param_init_from_value(&src_params[2], new);
|
||||||
|
|
||||||
|
sm6_parser_init_ssa_value(sm6, dst);
|
||||||
|
|
||||||
if (!(dst_params = instruction_dst_params_alloc(ins, 2, sm6)))
|
if (!(dst_params = instruction_dst_params_alloc(ins, 2, sm6)))
|
||||||
return;
|
return;
|
||||||
register_init_ssa_scalar(&dst_params[0].reg, dst->type, dst, sm6);
|
sm6_register_from_value(&dst_params[0].reg, dst);
|
||||||
dst_param_init(&dst_params[0]);
|
dst_param_init(&dst_params[0]);
|
||||||
dst_params[1].reg = reg;
|
dst_params[1].reg = reg;
|
||||||
dst_param_init(&dst_params[1]);
|
dst_param_init(&dst_params[1]);
|
||||||
|
|
||||||
dst->reg = dst_params[0].reg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sm6_parser_emit_extractval(struct sm6_parser *sm6, const struct dxil_record *record,
|
static void sm6_parser_emit_extractval(struct sm6_parser *sm6, const struct dxil_record *record,
|
||||||
|
Reference in New Issue
Block a user