diff options
-rw-r--r-- | src/panfrost/bifrost/bi_pack.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index fcbbf52dd68..4e8af2ff43d 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -942,8 +942,17 @@ bi_pack(bi_context *ctx, struct util_dynarray *emission) #ifndef NDEBUG +static void +bi_test_pack_literal(void) +{ + for (unsigned x = 0; x <= 7; ++x) + assert(bi_pack_literal(BI_CLAUSE_SUBWORD_LITERAL_0 + x) == x); +} + int bi_test_packing(void) { + bi_test_pack_literal(); + return 0; } #endif |