mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
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
@@ -10206,6 +10206,7 @@ static void sm4_generate_vsir_cast_from_bool(struct hlsl_ctx *ctx, struct vsir_p
|
||||
|
||||
dst_param = &ins->dst[0];
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user