vkd3d-shader/dxil: Do not use field "reg" in of sm6_value when writing bitcasts.

It's going to be removed; the generated register data type is the
right thing to look at here.
This commit is contained in:
Giovanni Mascellani
2025-05-12 15:13:10 +02:00
committed by Henri Verbeet
parent 9552dab5aa
commit 0e006715d8
Notes: Henri Verbeet 2025-06-04 13:14:04 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1532

View File

@@ -6955,9 +6955,11 @@ static void sm6_parser_emit_cast(struct sm6_parser *sm6, const struct dxil_recor
instruction_dst_param_init_ssa_scalar(ins, sm6); instruction_dst_param_init_ssa_scalar(ins, sm6);
/* bitcast */ /* VSIR bitcasts are represented by source registers with types different
* from the types they were written with, rather than with different types
* for the MOV source and destination. */
if (handler_idx == VKD3DSIH_MOV) if (handler_idx == VKD3DSIH_MOV)
src_param->reg.data_type = dst->reg.data_type; src_param->reg.data_type = ins->dst[0].reg.data_type;
} }
struct sm6_cmp_info struct sm6_cmp_info