From 6aee9991318cbe0cacaf1b30bff884930bf6ca50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 5 Nov 2022 03:44:53 -0400 Subject: [PATCH] aco: implement nir_op_unpack_32_4x8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index cccc628..7e606ca 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -3524,8 +3524,11 @@ visit_alu_instr(isel_context* ctx, nir_alu_instr* instr) case nir_op_unpack_64_2x32: case nir_op_unpack_32_2x16: case nir_op_unpack_64_4x16: + case nir_op_unpack_32_4x8: 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); + emit_split_vector(ctx, dst, + instr->op == nir_op_unpack_32_4x8 || + 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]); -- 2.7.4