Skip to content

Commit 673e954

Browse files
[6/n] L0 immediate commandlist improvements
Add new ults Related-To: LOCI-1988 Signed-off-by: Aravind Gopalakrishnan <[email protected]>
1 parent 17c4cc5 commit 673e954

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_2.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,21 @@ HWTEST2_F(CommandListCreate, givenCommandListAnd2DWhbufferenMemoryCopyRegionCall
422422
EXPECT_GT(cmdList.appendMemoryCopyKernel2dCalledTimes, 0u);
423423
}
424424

425+
HWTEST2_F(CommandListCreate, givenImmediateCommandListWithFlushTaskEnabledWhenAppendingMemoryCopyRegionThenSuccessIsReturned, IsAtLeastXeHpCore) {
426+
DebugManagerStateRestore restorer;
427+
NEO::DebugManager.flags.EnableFlushTaskSubmission.set(1);
428+
429+
MockCommandListHw<gfxCoreFamily> cmdList;
430+
cmdList.cmdListType = CommandList::CommandListType::TYPE_IMMEDIATE;
431+
cmdList.initialize(device, NEO::EngineGroupType::Compute, 0u);
432+
void *srcPtr = reinterpret_cast<void *>(0x1234);
433+
void *dstPtr = reinterpret_cast<void *>(0x2345);
434+
ze_copy_region_t dstRegion = {4, 4, 4, 2, 2, 2};
435+
ze_copy_region_t srcRegion = {4, 4, 4, 2, 2, 2};
436+
auto result = cmdList.appendMemoryCopyRegion(dstPtr, &dstRegion, 0, 0, srcPtr, &srcRegion, 0, 0, nullptr, 0, nullptr);
437+
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
438+
}
439+
425440
HWTEST2_F(CommandListCreate, givenCopyOnlyCommandListWhenAppendMemoryFillCalledThenAppendBlitFillCalled, IsAtLeastSkl) {
426441
MockCommandListHw<gfxCoreFamily> cmdList;
427442
cmdList.initialize(device, NEO::EngineGroupType::Copy, 0u);

0 commit comments

Comments
 (0)