mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Write SM4 int multiplication instructions.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
8c086b5c91
commit
c92897ffd2
@@ -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);
|
write_sm4_binary_op(buffer, VKD3D_SM4_OP_MUL, &expr->node, arg1, arg2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case HLSL_TYPE_INT:
|
||||||
case HLSL_TYPE_UINT:
|
case HLSL_TYPE_UINT:
|
||||||
/* Using IMUL instead of UMUL because we're taking the low
|
/* Using IMUL instead of UMUL because we're taking the low
|
||||||
* bits, and the native compiler generates IMUL. */
|
* bits, and the native compiler generates IMUL. */
|
||||||
|
Reference in New Issue
Block a user