mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
feature: control post sync completion check
Related-To: NEO-14844 Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
087d1ecea4
commit
2c5cbec033
@@ -6498,3 +6498,49 @@ HWTEST_F(CommandStreamReceiverHwTest, givenImmediateFlushTaskCmdListDispatchWhen
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver.latestFlushedBatchBuffer.disableFlatRingBuffer);
|
||||
}
|
||||
|
||||
HWTEST_F(CommandStreamReceiverHwTest, GivenWaitOnWalkerPostSyncWhenImmediateFlushTaskCalledThenExpectIsWalkerWithProfilingEnqueuedFlagTrue) {
|
||||
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
|
||||
|
||||
{
|
||||
immediateFlushTaskFlags.isWalkerWithProfilingEnqueued = false;
|
||||
commandStreamReceiver.flushImmediateTask(commandStream,
|
||||
commandStream.getUsed(),
|
||||
immediateFlushTaskFlags,
|
||||
*pDevice);
|
||||
|
||||
EXPECT_FALSE(commandStreamReceiver.isWalkerWithProfilingEnqueued);
|
||||
}
|
||||
|
||||
{
|
||||
immediateFlushTaskFlags.isWalkerWithProfilingEnqueued = true;
|
||||
commandStreamReceiver.flushImmediateTask(commandStream,
|
||||
commandStream.getUsed(),
|
||||
immediateFlushTaskFlags,
|
||||
*pDevice);
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver.isWalkerWithProfilingEnqueued);
|
||||
}
|
||||
|
||||
{
|
||||
immediateFlushTaskFlags.isWalkerWithProfilingEnqueued = false;
|
||||
commandStreamReceiver.isWalkerWithProfilingEnqueued = true;
|
||||
commandStreamReceiver.flushImmediateTask(commandStream,
|
||||
commandStream.getUsed(),
|
||||
immediateFlushTaskFlags,
|
||||
*pDevice);
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver.isWalkerWithProfilingEnqueued);
|
||||
}
|
||||
|
||||
{
|
||||
immediateFlushTaskFlags.isWalkerWithProfilingEnqueued = true;
|
||||
commandStreamReceiver.isWalkerWithProfilingEnqueued = true;
|
||||
commandStreamReceiver.flushImmediateTask(commandStream,
|
||||
commandStream.getUsed(),
|
||||
immediateFlushTaskFlags,
|
||||
*pDevice);
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver.isWalkerWithProfilingEnqueued);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1239,3 +1239,7 @@ HWTEST2_F(ProductHelperTest, givenProductHelperWhenPidFdOrSocketForIpcIsNotSuppo
|
||||
HWTEST2_F(ProductHelperTest, givenProductHelperWhenPidFdOrSocketForIpcIsNotSupportedThenFalseReturned, IsAtMostXeCore) {
|
||||
EXPECT_FALSE(productHelper->isPidFdOrSocketForIpcSupported());
|
||||
}
|
||||
|
||||
HWTEST_F(ProductHelperTest, givenProductHelperWhenAskingShouldRegisterEnqueuedWalkerWithProfilingThenFalseReturned) {
|
||||
EXPECT_FALSE(productHelper->shouldRegisterEnqueuedWalkerWithProfiling());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user