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

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

View File

@ -1846,6 +1846,11 @@ static void write_sm4_expr(struct hlsl_ctx *ctx,
break; break;
} }
case HLSL_OP2_LOGIC_AND:
assert(dst_type->base_type == HLSL_TYPE_BOOL);
write_sm4_binary_op(buffer, VKD3D_SM4_OP_AND, &expr->node, arg1, arg2);
break;
case HLSL_OP2_LSHIFT: case HLSL_OP2_LSHIFT:
assert(type_is_integer(dst_type)); assert(type_is_integer(dst_type));
assert(dst_type->base_type != HLSL_TYPE_BOOL); assert(dst_type->base_type != HLSL_TYPE_BOOL);

View File

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