[PATCH vkd3d 1/6] vkd3d-shader/hlsl: Write SM1 max instructions.
Giovanni Mascellani
gmascellani at codeweavers.com
Thu Sep 16 06:40:52 CDT 2021
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Il 16/09/21 00:43, Zebediah Figura ha scritto:
> Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
> ---
> libs/vkd3d-shader/hlsl_sm1.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/libs/vkd3d-shader/hlsl_sm1.c b/libs/vkd3d-shader/hlsl_sm1.c
> index b9a681a45..d56b6894a 100644
> --- a/libs/vkd3d-shader/hlsl_sm1.c
> +++ b/libs/vkd3d-shader/hlsl_sm1.c
> @@ -632,6 +632,10 @@ static void write_sm1_expr(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffer *b
> write_sm1_binary_op(ctx, buffer, D3DSIO_ADD, &instr->reg, &arg1->reg, &arg2->reg);
> break;
>
> + case HLSL_OP2_MAX:
> + write_sm1_binary_op(ctx, buffer, D3DSIO_MAX, &instr->reg, &arg1->reg, &arg2->reg);
> + break;
> +
> case HLSL_OP2_MUL:
> write_sm1_binary_op(ctx, buffer, D3DSIO_MUL, &instr->reg, &arg1->reg, &arg2->reg);
> break;
>
More information about the wine-devel
mailing list