Module: Mesa Branch: main Commit: 56967904205c894c271ef28b7d37dcd5ba01819c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56967904205c894c271ef28b7d37dcd5ba01819c
Author: Qiang Yu <yuq...@gmail.com> Date: Fri Nov 10 10:50:03 2023 +0800 ac/llvm: remove nir_op_*2*mp ops handling They have been lowered to *2*16 in nir. Reviewed-by: Marek Olšák <marek.ol...@amd.com> Signed-off-by: Qiang Yu <yuq...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25990> --- 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))