@@ -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+
425440HWTEST2_F (CommandListCreate, givenCopyOnlyCommandListWhenAppendMemoryFillCalledThenAppendBlitFillCalled, IsAtLeastSkl) {
426441 MockCommandListHw<gfxCoreFamily> cmdList;
427442 cmdList.initialize (device, NEO::EngineGroupType::Copy, 0u );
0 commit comments