pan/bi: Add subword 5/6 pack
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
This commit is contained in:
committed by
Marge Bot
parent
038bb8eabe
commit
1adb996acc
@@ -710,6 +710,25 @@ bi_pack_t_ec(enum bi_clause_subword word,
|
||||
return bi_pack_tuple_bits(word, tuples, tuple_count, 0, 60);
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
bi_pack_subwords_56(enum bi_clause_subword t,
|
||||
struct bi_packed_tuple *tuples,
|
||||
ASSERTED unsigned tuple_count,
|
||||
uint64_t header, uint64_t ec0,
|
||||
unsigned tuple_subword)
|
||||
{
|
||||
switch (t) {
|
||||
case BI_CLAUSE_SUBWORD_HEADER:
|
||||
return (header & ((1 << 30) - 1));
|
||||
case BI_CLAUSE_SUBWORD_RESERVED:
|
||||
return 0;
|
||||
case BI_CLAUSE_SUBWORD_CONSTANT:
|
||||
return (ec0 >> 15) & ((1 << 30) - 1);
|
||||
default:
|
||||
return bi_pack_tuple_bits(t, tuples, tuple_count, tuple_subword * 15, 30);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
bi_pack_clause(bi_context *ctx, bi_clause *clause,
|
||||
bi_clause *next_1, bi_clause *next_2,
|
||||
|
||||
Reference in New Issue
Block a user