vkd3d-shader/hlsl: Write SM4 logic not instructions.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani 2022-07-01 11:23:31 +02:00 committed by Alexandre Julliard
parent 3e88a46d4c
commit 02d92c9af6
2 changed files with 8 additions and 3 deletions

View File

@ -1648,6 +1648,11 @@ static void write_sm4_expr(struct hlsl_ctx *ctx,
write_sm4_unary_op(buffer, VKD3D_SM4_OP_LOG, &expr->node, arg1, 0);
break;
case HLSL_OP1_LOGIC_NOT:
assert(dst_type->base_type == HLSL_TYPE_BOOL);
write_sm4_unary_op(buffer, VKD3D_SM4_OP_NOT, &expr->node, arg1, 0);
break;
case HLSL_OP1_NEG:
switch (dst_type->base_type)
{

View File

@ -22,7 +22,7 @@ float4 main() : SV_TARGET
}
[test]
todo draw quad
draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -75,7 +75,7 @@ float4 main() : SV_TARGET
}
[test]
todo draw quad
draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]
@ -128,7 +128,7 @@ float4 main() : SV_TARGET
}
[test]
todo draw quad
draw quad
probe all rgba (0.0, 0.0, 0.0, 1.0)
[pixel shader]