Zebediah Figura : vkd3d-shader: Write SM1 subtraction instructions.

Alexandre Julliard julliard at winehq.org
Fri Jun 18 14:43:57 CDT 2021


Module: vkd3d
Branch: master
Commit: 98149da91a0c8e6c90f8e2a6377b02038d53d237
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=98149da91a0c8e6c90f8e2a6377b02038d53d237

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Mon May 31 21:41:10 2021 -0500

vkd3d-shader: Write SM1 subtraction instructions.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/vkd3d-shader/hlsl_codegen.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c
index afa096b..7395772 100644
--- a/libs/vkd3d-shader/hlsl_codegen.c
+++ b/libs/vkd3d-shader/hlsl_codegen.c
@@ -1733,6 +1733,10 @@ static void write_sm1_expr(struct hlsl_ctx *ctx, struct bytecode_buffer *buffer,
             write_sm1_binary_op(ctx, buffer, D3DSIO_MUL, &instr->reg, &arg1->reg, &arg2->reg);
             break;
 
+        case HLSL_IR_BINOP_SUB:
+            write_sm1_binary_op(ctx, buffer, D3DSIO_SUB, &instr->reg, &arg1->reg, &arg2->reg);
+            break;
+
         case HLSL_IR_UNOP_NEG:
             write_sm1_unary_op(ctx, buffer, D3DSIO_MOV, &instr->reg, &arg1->reg, D3DSPSM_NEG);
             break;




More information about the wine-cvs mailing list