mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
pan/bi: Test bi_must_last
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
7bd6ca934d
commit
e3436e784e
1 changed files with 8 additions and 0 deletions
|
|
@ -323,14 +323,22 @@ bi_test_units(bi_builder *b)
|
|||
bi_instr *mov = bi_mov_i32_to(b, TMP(), TMP());
|
||||
assert(bi_can_fma(mov));
|
||||
assert(bi_can_add(mov));
|
||||
assert(!bi_must_last(mov));
|
||||
|
||||
bi_instr *fma = bi_fma_f32_to(b, TMP(), TMP(), TMP(), bi_zero(), BI_ROUND_NONE);
|
||||
assert(bi_can_fma(fma));
|
||||
assert(!bi_can_add(fma));
|
||||
assert(!bi_must_last(fma));
|
||||
|
||||
bi_instr *load = bi_load_i128_to(b, TMP(), TMP(), TMP(), BI_SEG_UBO);
|
||||
assert(!bi_can_fma(load));
|
||||
assert(bi_can_add(load));
|
||||
assert(!bi_must_last(load));
|
||||
|
||||
bi_instr *blend = bi_blend_to(b, TMP(), TMP(), TMP(), TMP(), TMP());
|
||||
assert(!bi_can_fma(load));
|
||||
assert(bi_can_add(load));
|
||||
assert(bi_must_last(blend));
|
||||
}
|
||||
|
||||
int bi_test_scheduler(void)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue