Giovanni Mascellani : vkd3d-shader/hlsl: Write SM4 integer negation.
Module: vkd3d Branch: master Commit: c64627313fe9288bec24dc2de3e5063c922a1f4c URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=c64627313fe9288bec24dc2d... Author: Giovanni Mascellani <gmascellani(a)codeweavers.com> Date: Wed Dec 1 17:14:59 2021 +0100 vkd3d-shader/hlsl: Write SM4 integer negation. Signed-off-by: Giovanni Mascellani <gmascellani(a)codeweavers.com> Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com> Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- Makefile.am | 3 +-- libs/vkd3d-shader/hlsl_sm4.c | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 88bdc0e..934d7e6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -309,8 +309,7 @@ XFAIL_TESTS = \ tests/sampler.shader_test \ tests/texture-load.shader_test \ tests/texture-load-typed.shader_test \ - tests/trigonometry.shader_test \ - tests/writemask-assignop-1.shader_test + tests/trigonometry.shader_test endif if BUILD_DEMOS diff --git a/libs/vkd3d-shader/hlsl_sm4.c b/libs/vkd3d-shader/hlsl_sm4.c index ef4a432..7f2f960 100644 --- a/libs/vkd3d-shader/hlsl_sm4.c +++ b/libs/vkd3d-shader/hlsl_sm4.c @@ -1416,6 +1416,10 @@ static void write_sm4_expr(struct hlsl_ctx *ctx, break; } + case HLSL_OP1_NEG: + write_sm4_unary_op(buffer, VKD3D_SM4_OP_INEG, &expr->node, arg1, 0); + break; + default: hlsl_fixme(ctx, &expr->node.loc, "SM4 int \"%s\" expression.", debug_hlsl_expr_op(expr->op)); break;
participants (1)
-
Alexandre Julliard