fix: Restore handle fence completion when reusing cmd buffer

Related-To: NEO-7116

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk 2023-12-29 09:12:23 +00:00 committed by Compute-Runtime-Automation
parent d7b6f11ced
commit 5d90818cce
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);
}