[PATCH vkd3d v2 1/7] vkd3d-shader/hlsl: Write SM4 integer negation.
Giovanni Mascellani
gmascellani at codeweavers.com
Mon Nov 22 09:14:23 CST 2021
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
On 22/11/21 15:28, Giovanni Mascellani wrote:
> ---
> 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 a95503ee..acc11ce9 100644
> --- a/libs/vkd3d-shader/hlsl_sm4.c
> +++ b/libs/vkd3d-shader/hlsl_sm4.c
> @@ -1376,6 +1376,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;
>
More information about the wine-devel
mailing list