mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Remove wait on user fence during cmdlist destroy/reset
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-7158
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
43627d96f5
commit
1c446ff213
@ -219,7 +219,7 @@ TEST_F(CommandContainerTest, givenCmdContainerWithAllocsListWhenAllocateAndReset
|
||||
auto cmdBuffer1 = cmdBufferAllocs[1];
|
||||
|
||||
cmdContainer->reset();
|
||||
EXPECT_EQ(memoryManager->handleFenceCompletionCalled, 1u);
|
||||
EXPECT_EQ(memoryManager->handleFenceCompletionCalled, 0u);
|
||||
EXPECT_EQ(cmdBufferAllocs.size(), 1u);
|
||||
EXPECT_EQ(cmdBufferAllocs[0], cmdBuffer0);
|
||||
EXPECT_FALSE(allocList.peekIsEmpty());
|
||||
@ -231,14 +231,14 @@ TEST_F(CommandContainerTest, givenCmdContainerWithAllocsListWhenAllocateAndReset
|
||||
EXPECT_TRUE(allocList.peekIsEmpty());
|
||||
|
||||
cmdContainer.reset();
|
||||
EXPECT_EQ(memoryManager->handleFenceCompletionCalled, 3u);
|
||||
EXPECT_EQ(memoryManager->handleFenceCompletionCalled, 0u);
|
||||
EXPECT_FALSE(allocList.peekIsEmpty());
|
||||
allocList.freeAllGraphicsAllocations(pDevice);
|
||||
}
|
||||
|
||||
TEST_F(CommandContainerTest, givenReusableAllocationsAndRemoveUserFenceInCmdlistResetAndDestroyFlagWhenAllocateAndResetThenHandleFenceCompletionIsNotCalled) {
|
||||
TEST_F(CommandContainerTest, givenReusableAllocationsAndRemoveUserFenceInCmdlistResetAndDestroyFlagWhenAllocateAndResetThenHandleFenceCompletionIsCalled) {
|
||||
DebugManagerStateRestore restore;
|
||||
DebugManager.flags.RemoveUserFenceInCmdlistResetAndDestroy.set(1);
|
||||
DebugManager.flags.RemoveUserFenceInCmdlistResetAndDestroy.set(0);
|
||||
|
||||
AllocationsList allocList;
|
||||
auto cmdContainer = std::make_unique<CommandContainer>();
|
||||
@ -251,12 +251,12 @@ TEST_F(CommandContainerTest, givenReusableAllocationsAndRemoveUserFenceInCmdlist
|
||||
EXPECT_EQ(cmdBufferAllocs.size(), 2u);
|
||||
|
||||
cmdContainer->reset();
|
||||
EXPECT_EQ(0u, memoryManager->handleFenceCompletionCalled);
|
||||
EXPECT_EQ(1u, memoryManager->handleFenceCompletionCalled);
|
||||
cmdContainer->allocateNextCommandBuffer();
|
||||
EXPECT_EQ(cmdBufferAllocs.size(), 2u);
|
||||
|
||||
cmdContainer.reset();
|
||||
EXPECT_EQ(0u, memoryManager->handleFenceCompletionCalled);
|
||||
EXPECT_EQ(3u, memoryManager->handleFenceCompletionCalled);
|
||||
allocList.freeAllGraphicsAllocations(pDevice);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user