From 543f50789a482f32107b1859d0413c817b17bf02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 31 Aug 2020 17:37:25 +0100 Subject: [PATCH] aco: implement nir_op_unpack_[64/32]_* Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 677fac16ab7..4f508747870 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -2561,6 +2561,12 @@ void visit_alu_instr(isel_context *ctx, nir_alu_instr *instr) } break; } + case nir_op_unpack_64_2x32: + case nir_op_unpack_32_2x16: + case nir_op_unpack_64_4x16: + bld.copy(Definition(dst), get_alu_src(ctx, instr->src[0])); + emit_split_vector(ctx, dst, instr->op == nir_op_unpack_64_4x16 ? 4 : 2); + break; case nir_op_pack_64_2x32_split: { Temp src0 = get_alu_src(ctx, instr->src[0]); Temp src1 = get_alu_src(ctx, instr->src[1]);