From 6f0eff548c16c12309edec812b6573c63fdc866d Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Sun, 3 Jan 2021 21:45:56 +1300 Subject: [PATCH] pan/bi: Implement packing ops between 32-bit vec1 and 16-bit vec2 Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index ddb1e2b..c13605e 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -900,6 +900,7 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr) * are the exceptions that need to handle swizzles specially. */ switch (instr->op) { + case nir_op_pack_32_2x16: case nir_op_vec2: case nir_op_vec3: case nir_op_vec4: { @@ -925,6 +926,7 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr) case nir_op_vec16: unreachable("should've been lowered"); + case nir_op_unpack_32_2x16: case nir_op_unpack_64_2x32_split_x: bi_mov_i32_to(b, dst, bi_src_index(&instr->src[0].src)); return; -- 2.7.4