From b4608e99e375ffabd5ddd28d2f67c844a187122c Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Wed, 30 Oct 2024 13:23:47 -0300 Subject: [PATCH] vkd3d-shader/tpf: Remove HLSL IR ABS handling. --- libs/vkd3d-shader/tpf.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libs/vkd3d-shader/tpf.c b/libs/vkd3d-shader/tpf.c index 4978fcbf..c8fb8e3d 100644 --- a/libs/vkd3d-shader/tpf.c +++ b/libs/vkd3d-shader/tpf.c @@ -5545,18 +5545,6 @@ static void write_sm4_expr(const struct tpf_compiler *tpf, const struct hlsl_ir_ "GetRenderTargetSampleCount() can only be used from a pixel shader using version 4.1 or higher."); break; - case HLSL_OP1_ABS: - switch (dst_type->e.numeric.type) - { - case HLSL_TYPE_FLOAT: - write_sm4_unary_op(tpf, VKD3D_SM4_OP_MOV, &expr->node, arg1, VKD3DSPSM_ABS); - break; - - default: - hlsl_fixme(tpf->ctx, &expr->node.loc, "SM4 %s absolute value expression.", dst_type_string->buffer); - } - break; - case HLSL_OP1_BIT_NOT: VKD3D_ASSERT(type_is_integer(dst_type)); write_sm4_unary_op(tpf, VKD3D_SM4_OP_NOT, &expr->node, arg1, 0);