diff --git a/level_zero/core/source/cmdlist/cmdlist_hw_immediate.inl b/level_zero/core/source/cmdlist/cmdlist_hw_immediate.inl index 1ece16fe5b..124a2b89d2 100644 --- a/level_zero/core/source/cmdlist/cmdlist_hw_immediate.inl +++ b/level_zero/core/source/cmdlist/cmdlist_hw_immediate.inl @@ -1915,9 +1915,6 @@ ze_result_t CommandListCoreFamilyImmediate::appendStagingMemoryCo template bool CommandListCoreFamilyImmediate::isValidForStagingTransfer(const void *dstptr, const void *srcptr, size_t size, bool hasDependencies) { - if (NEO::debugManager.flags.EnableCopyWithStagingBuffers.get() != 1) { - return false; - } if (this->useAdditionalBlitProperties) { return false; } diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_memory.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_memory.cpp index fe7ee15f41..a58e18a34d 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_memory.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_memory.cpp @@ -1435,8 +1435,6 @@ HWTEST_F(StagingBuffersFixture, givenAppendMemoryCopyWithoutStagingThenImportAll } HWTEST_F(StagingBuffersFixture, givenAppendMemoryCopyWithStagingAndNonUsmDstThenImportAllocation) { - NEO::debugManager.flags.EnableCopyWithStagingBuffers.set(1); - MockCommandListImmediateHw cmdList; cmdList.cmdQImmediate = queue.get(); cmdList.initialize(device, NEO::EngineGroupType::compute, 0u); @@ -1451,8 +1449,6 @@ HWTEST_F(StagingBuffersFixture, givenAppendMemoryCopyWithStagingAndNonUsmDstThen } HWTEST_F(StagingBuffersFixture, givenAppendMemoryCopyWithStagingThenDontImportAllocation) { - NEO::debugManager.flags.EnableCopyWithStagingBuffers.set(1); - MockCommandListImmediateHw cmdList; cmdList.callBaseExecute = true; cmdList.cmdQImmediate = queue.get(); @@ -1484,8 +1480,6 @@ HWTEST_F(StagingBuffersFixture, givenStagingBufferManagerDestroyedAndHostSynchro } HWTEST_F(StagingBuffersFixture, givenAppendMemoryCopyWithStagingWhenAppendFailedThenPropagateError) { - NEO::debugManager.flags.EnableCopyWithStagingBuffers.set(1); - MockCommandListImmediateHw cmdList; cmdList.cmdQImmediate = queue.get(); cmdList.initialize(device, NEO::EngineGroupType::compute, 0u);