From bcb2acbdab60b47e6929e3136e4086f0da742d40 Mon Sep 17 00:00:00 2001 From: Elizabeth Figura Date: Mon, 23 Jun 2025 20:13:33 -0500 Subject: [PATCH] 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. --- libs/vkd3d-shader/hlsl_codegen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c index 9fa810a7a..203563991 100644 --- a/libs/vkd3d-shader/hlsl_codegen.c +++ b/libs/vkd3d-shader/hlsl_codegen.c @@ -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);