@@ -1573,39 +1573,6 @@ HWTEST_F(BufferWithWddmMemory, GivenPointerAndSizeWhenAskedToCreateGrahicsAlloca
15731573 memoryManager->freeGraphicsMemory (allocation);
15741574}
15751575
1576- HWTEST_F (BufferWithWddmMemory, givenFragmentsThatAreNotInOrderWhenGraphicsAllocationIsBeingCreatedThenGraphicsAddressIsPopulatedFromProperFragment) {
1577- SetUpMm<FamilyType>();
1578- memoryManager->setForce32bitAllocations (true );
1579- OsHandleStorage handleStorage;
1580- D3DGPU_VIRTUAL_ADDRESS lowestAdress = MemoryConstants::pageSize * 1 ;
1581- D3DGPU_VIRTUAL_ADDRESS higherAdress = MemoryConstants::pageSize * 2 ;
1582-
1583- auto ptr = reinterpret_cast <void *>(wddm->virtualAllocAddress + MemoryConstants::pageSize * 1 );
1584- auto ptr2 = reinterpret_cast <void *>(wddm->virtualAllocAddress + MemoryConstants::pageSize * 2 );
1585- auto size = MemoryConstants::pageSize;
1586- OsHandle osHandle1;
1587- OsHandle osHandle2;
1588- handleStorage.fragmentStorageData [0 ].cpuPtr = ptr;
1589- handleStorage.fragmentStorageData [0 ].fragmentSize = size;
1590- handleStorage.fragmentStorageData [0 ].osHandleStorage = &osHandle1;
1591- handleStorage.fragmentStorageData [0 ].osHandleStorage ->gpuPtr = higherAdress;
1592-
1593- handleStorage.fragmentStorageData [1 ].cpuPtr = ptr2;
1594- handleStorage.fragmentStorageData [1 ].fragmentSize = size * 2 ;
1595- handleStorage.fragmentStorageData [1 ].osHandleStorage = &osHandle2;
1596- handleStorage.fragmentStorageData [1 ].osHandleStorage ->gpuPtr = lowestAdress;
1597- handleStorage.fragmentCount = 2 ;
1598-
1599- auto allocation = memoryManager->createGraphicsAllocation (handleStorage, size, ptr);
1600-
1601- EXPECT_EQ (ptr, allocation->getUnderlyingBuffer ());
1602- EXPECT_EQ (size, allocation->getUnderlyingBufferSize ());
1603- EXPECT_EQ (lowestAdress, allocation->getGpuAddress ());
1604-
1605- allocation->fragmentsStorage .fragmentCount = 0 ;
1606- memoryManager->freeGraphicsMemory (allocation);
1607- }
1608-
16091576HWTEST_F (WddmMemoryManagerTest2, makeResidentResidencyAllocationsDoesNotMarkAllocationsResidentWhenMakeResidentFails) {
16101577 SetUpMm<FamilyType>();
16111578 WddmAllocation allocation1, allocation2, allocation3, allocation4;
0 commit comments