diff options
author | Giovanni Mascellani <gmascellani@codeweavers.com> | 2021-09-21 15:13:54 +0300 |
---|---|---|
committer | Giovanni Mascellani <gmascellani@codeweavers.com> | 2021-10-01 14:06:49 +0300 |
commit | ccac7b47153fe0f4fc4e06b76c41bd4cce873470 (patch) | |
tree | a8933399f89b6283e8d5d07670631fa8a18b6cad | |
parent | 073f221706a1aa9553506138f6cec1f0d6eb5e92 (diff) |
vkd3d-shader/hlsl: Write SM4 casts from bool to uint.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
-rw-r--r-- | libs/vkd3d-shader/hlsl_sm4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/vkd3d-shader/hlsl_sm4.c b/libs/vkd3d-shader/hlsl_sm4.c index fbe8af20..8097e080 100644 --- a/libs/vkd3d-shader/hlsl_sm4.c +++ b/libs/vkd3d-shader/hlsl_sm4.c @@ -1767,7 +1767,7 @@ static void write_sm4_expr(struct hlsl_ctx *ctx, break; case HLSL_TYPE_BOOL: - hlsl_fixme(ctx, expr->node.loc, "SM4 cast from bool to uint.\n"); + write_sm4_conditional_op(buffer, &expr->node, arg1, 1, 0); break; case HLSL_TYPE_DOUBLE: |