From 56967904205c894c271ef28b7d37dcd5ba01819c Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Fri, 10 Nov 2023 10:50:03 +0800 Subject: [PATCH] ac/llvm: remove nir_op_*2*mp ops handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They have been lowered to *2*16 in nir. Reviewed-by: Marek Olšák Signed-off-by: Qiang Yu Part-of: --- src/amd/llvm/ac_nir_to_llvm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c index 28cd089b515..d82dde258eb 100644 --- a/src/amd/llvm/ac_nir_to_llvm.c +++ b/src/amd/llvm/ac_nir_to_llvm.c @@ -906,7 +906,6 @@ static bool visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr) break; case nir_op_f2i8: case nir_op_f2i16: - case nir_op_f2imp: case nir_op_f2i32: case nir_op_f2i64: src[0] = ac_to_float(&ctx->ac, src[0]); @@ -914,27 +913,23 @@ static bool visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr) break; case nir_op_f2u8: case nir_op_f2u16: - case nir_op_f2ump: case nir_op_f2u32: case nir_op_f2u64: src[0] = ac_to_float(&ctx->ac, src[0]); result = LLVMBuildFPToUI(ctx->ac.builder, src[0], def_type, ""); break; case nir_op_i2f16: - case nir_op_i2fmp: case nir_op_i2f32: case nir_op_i2f64: result = LLVMBuildSIToFP(ctx->ac.builder, src[0], ac_to_float_type(&ctx->ac, def_type), ""); break; case nir_op_u2f16: - case nir_op_u2fmp: case nir_op_u2f32: case nir_op_u2f64: result = LLVMBuildUIToFP(ctx->ac.builder, src[0], ac_to_float_type(&ctx->ac, def_type), ""); break; case nir_op_f2f16_rtz: case nir_op_f2f16: - case nir_op_f2fmp: src[0] = ac_to_float(&ctx->ac, src[0]); /* For OpenGL, we want fast packing with v_cvt_pkrtz_f16, but if we use it, @@ -993,7 +988,6 @@ static bool visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr) break; case nir_op_i2i8: case nir_op_i2i16: - case nir_op_i2imp: case nir_op_i2i32: case nir_op_i2i64: if (ac_get_elem_bits(&ctx->ac, LLVMTypeOf(src[0])) < ac_get_elem_bits(&ctx->ac, def_type))