Giovanni Mascellani : vkd3d-shader/hlsl: Write SM4 unsigned maximum.
Alexandre Julliard
julliard at winehq.org
Thu Dec 16 16:36:31 CST 2021
Module: vkd3d
Branch: master
Commit: 3fd1d5c33ed1a6d7bf373d8b4c73e34d020c4369
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=3fd1d5c33ed1a6d7bf373d8b4c73e34d020c4369
Author: Giovanni Mascellani <gmascellani at codeweavers.com>
Date: Wed Dec 1 17:15:04 2021 +0100
vkd3d-shader/hlsl: Write SM4 unsigned maximum.
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura 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 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libs/vkd3d-shader/hlsl_sm4.c b/libs/vkd3d-shader/hlsl_sm4.c
index a17ca59..0d6e8c1 100644
--- a/libs/vkd3d-shader/hlsl_sm4.c
+++ b/libs/vkd3d-shader/hlsl_sm4.c
@@ -1472,6 +1472,10 @@ static void write_sm4_expr(struct hlsl_ctx *ctx,
break;
}
+ case HLSL_OP2_MAX:
+ write_sm4_binary_op(buffer, VKD3D_SM4_OP_UMAX, &expr->node, arg1, arg2);
+ break;
+
default:
hlsl_fixme(ctx, &expr->node.loc, "SM4 uint \"%s\" expression.\n", debug_hlsl_expr_op(expr->op));
break;
More information about the wine-cvs
mailing list