diff --git a/shared/source/command_container/cmdcontainer.h b/shared/source/command_container/cmdcontainer.h index c252b77e5d..ef57c82c72 100644 --- a/shared/source/command_container/cmdcontainer.h +++ b/shared/source/command_container/cmdcontainer.h @@ -256,7 +256,7 @@ class CommandContainer : public NonCopyableOrMovableClass { uint32_t nextIddInBlock = 0; bool isFlushTaskUsedForImmediate = false; - bool isHandleFenceCompletionRequired = false; + bool isHandleFenceCompletionRequired = true; bool heapSharingEnabled = false; bool useSecondaryCommandStream = false; bool indirectHeapInLocalMemory = false; diff --git a/shared/test/unit_test/command_container/command_container_tests.cpp b/shared/test/unit_test/command_container/command_container_tests.cpp index 0f954d710c..79bb7c47f6 100644 --- a/shared/test/unit_test/command_container/command_container_tests.cpp +++ b/shared/test/unit_test/command_container/command_container_tests.cpp @@ -285,7 +285,7 @@ TEST_F(CommandContainerTest, givenCmdContainerWithAllocsListWhenAllocateAndReset auto cmdBuffer1 = cmdBufferAllocs[1]; cmdContainer->reset(); - EXPECT_EQ(memoryManager->handleFenceCompletionCalled, 0u); + EXPECT_EQ(memoryManager->handleFenceCompletionCalled, 1u); EXPECT_EQ(cmdBufferAllocs.size(), 1u); EXPECT_EQ(cmdBufferAllocs[0], cmdBuffer0); EXPECT_FALSE(allocList.peekIsEmpty()); @@ -297,7 +297,7 @@ TEST_F(CommandContainerTest, givenCmdContainerWithAllocsListWhenAllocateAndReset EXPECT_TRUE(allocList.peekIsEmpty()); cmdContainer.reset(); - EXPECT_EQ(memoryManager->handleFenceCompletionCalled, 0u); + EXPECT_EQ(memoryManager->handleFenceCompletionCalled, 3u); EXPECT_FALSE(allocList.peekIsEmpty()); allocList.freeAllGraphicsAllocations(pDevice); }