Add tests for split handling barrier

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2023-02-07 13:46:49 +00:00
committed by Compute-Runtime-Automation
parent 222992000a
commit 1d675fc145
2 changed files with 66 additions and 0 deletions

View File

@@ -1470,6 +1470,9 @@ TEST(CommandStreamReceiverSimpleTest, whenInitializeTagAllocationThenBarrierCoun
EXPECT_EQ(csr.getBarrierCountTagAddress(), ptrOffset(csr.getTagAddress(), TagAllocationLayout::barrierCountOffset));
EXPECT_EQ(csr.getBarrierCountGpuAddress(), ptrOffset(csr.getTagAllocation()->getGpuAddress(), TagAllocationLayout::barrierCountOffset));
EXPECT_EQ(csr.peekBarrierCount(), 0u);
EXPECT_EQ(csr.getNextBarrierCount(), 0u);
EXPECT_EQ(csr.peekBarrierCount(), 1u);
}
TEST(CommandStreamReceiverSimpleTest, givenGpuIdleImplicitFlushCheckDisabledWhenGpuIsIdleThenReturnFalse) {