vkd3d-shader/hlsl: Set the destination data type to UINT in sm4_generate_vsir_cast_from_bool().

Validation checks that the source and destination types are both integer.
This commit is contained in:
Elizabeth Figura
2025-06-23 20:13:33 -05:00
committed by Henri Verbeet
parent a1eb53df3c
commit bcb2acbdab
Notes: Henri Verbeet 2025-06-25 17:08:41 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1597

View File

@@ -10206,6 +10206,7 @@ static void sm4_generate_vsir_cast_from_bool(struct hlsl_ctx *ctx, struct vsir_p
dst_param = &ins->dst[0]; dst_param = &ins->dst[0];
vsir_dst_from_hlsl_node(dst_param, ctx, instr); vsir_dst_from_hlsl_node(dst_param, ctx, instr);
ins->dst[0].reg.data_type = VKD3D_DATA_UINT;
vsir_src_from_hlsl_node(&ins->src[0], ctx, operand, dst_param->write_mask); vsir_src_from_hlsl_node(&ins->src[0], ctx, operand, dst_param->write_mask);