mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
pan/bi: Add packing unit test group
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
4379f7bad2
commit
80157fac68
3 changed files with 10 additions and 0 deletions
|
|
@ -939,3 +939,11 @@ bi_pack(bi_context *ctx, struct util_dynarray *emission)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
||||
int bi_test_packing(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ bi_tests()
|
|||
{
|
||||
#ifndef NDEBUG
|
||||
bi_test_scheduler();
|
||||
bi_test_packing();
|
||||
printf("Pass.\n");
|
||||
return 0;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -724,6 +724,7 @@ void bi_register_allocate(bi_context *ctx);
|
|||
|
||||
/* Test suite */
|
||||
int bi_test_scheduler(void);
|
||||
int bi_test_packing(void);
|
||||
|
||||
bi_clause *
|
||||
bi_singleton(void *memctx, bi_instr *ins,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue