Giovanni Mascellani : vkd3d-shader/hlsl: Write SM4 int multiplication instructions.
Alexandre Julliard
julliard at winehq.org
Thu Apr 7 16:08:45 CDT 2022
Module: vkd3d
Branch: master
Commit: c92897ffd299bce1e7ea2b042a5699728c87917e
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=c92897ffd299bce1e7ea2b042a5699728c87917e
Author: Giovanni Mascellani <gmascellani at codeweavers.com>
Date: Wed Apr 6 21:24:43 2022 +0200
vkd3d-shader/hlsl: Write SM4 int multiplication instructions.
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
libs/vkd3d-shader/hlsl_sm4.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libs/vkd3d-shader/hlsl_sm4.c b/libs/vkd3d-shader/hlsl_sm4.c
index 9de8654c..fd0ab321 100644
--- a/libs/vkd3d-shader/hlsl_sm4.c
+++ b/libs/vkd3d-shader/hlsl_sm4.c
@@ -1810,6 +1810,7 @@ static void write_sm4_expr(struct hlsl_ctx *ctx,
write_sm4_binary_op(buffer, VKD3D_SM4_OP_MUL, &expr->node, arg1, arg2);
break;
+ case HLSL_TYPE_INT:
case HLSL_TYPE_UINT:
/* Using IMUL instead of UMUL because we're taking the low
* bits, and the native compiler generates IMUL. */
More information about the wine-cvs
mailing list