mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
pan/bi: Test pack_literal
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:
parent
80157fac68
commit
e383af639a
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue