vkd3d-shader/hlsl: Use elementwise_intrinsic_convert_args() in intrinsic_dst().

This one preserves integer arguments.
This commit is contained in:
Elizabeth Figura 2024-09-04 21:43:58 -05:00 committed by Henri Verbeet
parent 7636f2a233
commit 24e29649c4
Notes: Henri Verbeet 2024-09-11 15:34:20 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1042

View File

@ -3809,7 +3809,7 @@ static bool intrinsic_dst(struct hlsl_ctx *ctx, const struct parse_initializer *
" return %s(1, src0.y * src1.y, src0.z, src1.w);\n"
"}";
if (!elementwise_intrinsic_float_convert_args(ctx, params, loc))
if (!elementwise_intrinsic_convert_args(ctx, params, loc))
return false;
type = params->args[0]->data_type;
if (!(type->class == HLSL_CLASS_SCALAR