From 038bb8eabe6df6e051a56ac9144a4fc83f576fd0 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 6 Jan 2021 13:39:59 -0500 Subject: [PATCH] pan/bi: Add tuple/embedded constant pack Used for the first 4 subwords. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/bi_pack.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index fb0328fa7f3..2531e265688 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -698,6 +698,18 @@ bi_pack_sync(enum bi_clause_subword t1, return sync; } +static inline uint64_t +bi_pack_t_ec(enum bi_clause_subword word, + struct bi_packed_tuple *tuples, + ASSERTED unsigned tuple_count, + uint64_t ec0) +{ + if (word == BI_CLAUSE_SUBWORD_CONSTANT) + return ec0; + else + return bi_pack_tuple_bits(word, tuples, tuple_count, 0, 60); +} + static void bi_pack_clause(bi_context *ctx, bi_clause *clause, bi_clause *next_1, bi_clause *next_2,