mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Flush Marker command with TimestampPacket dependencies
Change-Id: I6475624996ccc254adb6641bef3cda431e57325a Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
3a61e34030
commit
2c0c0ace88
@@ -182,6 +182,8 @@ TEST_F(MarkerTest, givenMultipleEventWhenTheyArePassedToMarkerThenOutputEventHas
|
||||
&event3};
|
||||
cl_uint numEventsInWaitList = sizeof(eventWaitList) / sizeof(eventWaitList[0]);
|
||||
cl_event event = nullptr;
|
||||
auto initialTaskCount = pCmdQ->taskCount;
|
||||
|
||||
pCmdQ->enqueueMarkerWithWaitList(
|
||||
numEventsInWaitList,
|
||||
eventWaitList,
|
||||
@@ -189,8 +191,13 @@ TEST_F(MarkerTest, givenMultipleEventWhenTheyArePassedToMarkerThenOutputEventHas
|
||||
|
||||
std::unique_ptr<Event> pEvent((Event *)(event));
|
||||
|
||||
EXPECT_EQ(16u, pCmdQ->taskCount);
|
||||
EXPECT_EQ(16u, pEvent->peekTaskCount());
|
||||
if (pCmdQ->getCommandStreamReceiver().peekTimestampPacketWriteEnabled()) {
|
||||
EXPECT_EQ(initialTaskCount + 1, pCmdQ->taskCount);
|
||||
EXPECT_EQ(initialTaskCount + 1, pEvent->peekTaskCount());
|
||||
} else {
|
||||
EXPECT_EQ(16u, pCmdQ->taskCount);
|
||||
EXPECT_EQ(16u, pEvent->peekTaskCount());
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(MarkerTest, givenMultipleEventsAndCompletedUserEventWhenTheyArePassedToMarkerThenOutputEventHasHighestTaskCount) {
|
||||
@@ -209,6 +216,8 @@ TEST_F(MarkerTest, givenMultipleEventsAndCompletedUserEventWhenTheyArePassedToMa
|
||||
&userEvent};
|
||||
cl_uint numEventsInWaitList = sizeof(eventWaitList) / sizeof(eventWaitList[0]);
|
||||
cl_event event = nullptr;
|
||||
auto initialTaskCount = pCmdQ->taskCount;
|
||||
|
||||
pCmdQ->enqueueMarkerWithWaitList(
|
||||
numEventsInWaitList,
|
||||
eventWaitList,
|
||||
@@ -216,8 +225,13 @@ TEST_F(MarkerTest, givenMultipleEventsAndCompletedUserEventWhenTheyArePassedToMa
|
||||
|
||||
std::unique_ptr<Event> pEvent((Event *)(event));
|
||||
|
||||
EXPECT_EQ(16u, pCmdQ->taskCount);
|
||||
EXPECT_EQ(16u, pEvent->peekTaskCount());
|
||||
if (pCmdQ->getCommandStreamReceiver().peekTimestampPacketWriteEnabled()) {
|
||||
EXPECT_EQ(initialTaskCount + 1, pCmdQ->taskCount);
|
||||
EXPECT_EQ(initialTaskCount + 1, pEvent->peekTaskCount());
|
||||
} else {
|
||||
EXPECT_EQ(16u, pCmdQ->taskCount);
|
||||
EXPECT_EQ(16u, pEvent->peekTaskCount());
|
||||
}
|
||||
}
|
||||
|
||||
HWTEST_F(MarkerTest, givenMarkerCallFollowingNdrangeCallInBatchedModeWhenWaitForEventsIsCalledThenFlushStampIsProperlyUpdated) {
|
||||
|
||||
Reference in New Issue
Block a user