mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
pan/va: Unit test barrier handling
Add a unit test for the quirk discovered in the previos commit, because this will cause flakes (instead of fails) if we get it wrong. Better have a deterministic fail mode. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17091>
This commit is contained in:
parent
8c6b9b9c92
commit
43d00c2971
1 changed files with 13 additions and 0 deletions
|
|
@ -248,3 +248,16 @@ TEST_F(InsertFlow, DiamondCFG) {
|
|||
flow(END);
|
||||
});
|
||||
}
|
||||
|
||||
TEST_F(InsertFlow, BarrierBug) {
|
||||
CASE(KERNEL, {
|
||||
bi_instr *I = bi_store_i32(b, bi_register(0), bi_register(2), bi_register(4), BI_SEG_NONE, 0);
|
||||
I->slot = 2;
|
||||
|
||||
bi_fadd_f32_to(b, bi_register(10), bi_register(10), bi_register(10));
|
||||
flow(WAIT2);
|
||||
bi_barrier(b);
|
||||
flow(WAIT);
|
||||
flow(END);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue