@@ -1886,7 +1886,7 @@ TEST_F(CommandQueueCreate, givenCommandQueueWhenHandleIndirectAllocationResidenc
18861886 auto mockSvmAllocsManager = std::make_unique<SVMAllocsManagerMock>(device->getDriverHandle ()->getMemoryManager ());
18871887 reinterpret_cast <WhiteBox<::L0::DriverHandle> *>(device->getDriverHandle ())->svmAllocsManager = mockSvmAllocsManager.get ();
18881888
1889- commandQueue->handleIndirectAllocationResidency ({true , true , true }, lock);
1889+ commandQueue->handleIndirectAllocationResidency ({true , true , true }, lock, false );
18901890 EXPECT_EQ (mockSvmAllocsManager->makeIndirectAllocationsResidentCalledTimes , 1u );
18911891 EXPECT_EQ (mockSvmAllocsManager->addInternalAllocationsToResidencyContainerCalledTimes , 0u );
18921892 reinterpret_cast <WhiteBox<::L0::DriverHandle> *>(device->getDriverHandle ())->svmAllocsManager = prevSvmAllocsManager;
@@ -1911,7 +1911,7 @@ TEST_F(CommandQueueCreate, givenCommandQueueWhenHandleIndirectAllocationResidenc
19111911 auto mockSvmAllocsManager = std::make_unique<SVMAllocsManagerMock>(device->getDriverHandle ()->getMemoryManager ());
19121912 reinterpret_cast <WhiteBox<::L0::DriverHandle> *>(device->getDriverHandle ())->svmAllocsManager = mockSvmAllocsManager.get ();
19131913
1914- commandQueue->handleIndirectAllocationResidency ({true , true , true }, lock);
1914+ commandQueue->handleIndirectAllocationResidency ({true , true , true }, lock, false );
19151915 EXPECT_EQ (mockSvmAllocsManager->makeIndirectAllocationsResidentCalledTimes , 0u );
19161916 EXPECT_EQ (mockSvmAllocsManager->addInternalAllocationsToResidencyContainerCalledTimes , 1u );
19171917 reinterpret_cast <WhiteBox<::L0::DriverHandle> *>(device->getDriverHandle ())->svmAllocsManager = prevSvmAllocsManager;
@@ -1937,7 +1937,7 @@ TEST_F(CommandQueueCreate, givenCommandQueueWhenHandleIndirectAllocationResidenc
19371937 auto mockSvmAllocsManager = std::make_unique<SVMAllocsManagerMock>(device->getDriverHandle ()->getMemoryManager ());
19381938 reinterpret_cast <WhiteBox<::L0::DriverHandle> *>(device->getDriverHandle ())->svmAllocsManager = mockSvmAllocsManager.get ();
19391939
1940- commandQueue->handleIndirectAllocationResidency ({true , true , true }, lock);
1940+ commandQueue->handleIndirectAllocationResidency ({true , true , true }, lock, false );
19411941 std::thread th ([&] {
19421942 EXPECT_FALSE (mockSvmAllocsManager->mtxForIndirectAccess .try_lock ());
19431943 });
@@ -1947,30 +1947,5 @@ TEST_F(CommandQueueCreate, givenCommandQueueWhenHandleIndirectAllocationResidenc
19471947 commandQueue->destroy ();
19481948}
19491949
1950- TEST_F (CommandQueueCreate, givenCommandQueueWhenHandleIndirectAllocationResidencyCalledAndSubmiPackDisabeldThenResidencyContainerFromCsrIsUsed) {
1951- DebugManagerStateRestore restore;
1952- DebugManager.flags .MakeIndirectAllocationsResidentAsPack .set (0 );
1953- const ze_command_queue_desc_t desc{};
1954- ze_result_t returnValue;
1955-
1956- auto prevSvmAllocsManager = device->getDriverHandle ()->getSvmAllocsManager ();
1957- auto commandQueue = whiteboxCast (CommandQueue::create (productFamily,
1958- device,
1959- neoDevice->getDefaultEngine ().commandStreamReceiver ,
1960- &desc,
1961- false ,
1962- false ,
1963- returnValue));
1964- std::unique_lock<std::mutex> lock;
1965- auto mockSvmAllocsManager = std::make_unique<SVMAllocsManagerMock>(device->getDriverHandle ()->getMemoryManager ());
1966- reinterpret_cast <WhiteBox<::L0::DriverHandle> *>(device->getDriverHandle ())->svmAllocsManager = mockSvmAllocsManager.get ();
1967-
1968- commandQueue->handleIndirectAllocationResidency ({true , true , true }, lock);
1969- EXPECT_EQ (commandQueue->csr ->getResidencyAllocations ().data (), mockSvmAllocsManager->passedContainer );
1970- reinterpret_cast <WhiteBox<::L0::DriverHandle> *>(device->getDriverHandle ())->svmAllocsManager = prevSvmAllocsManager;
1971- lock.unlock ();
1972- commandQueue->destroy ();
1973- }
1974-
19751950} // namespace ult
19761951} // namespace L0
0 commit comments