@@ -907,10 +907,10 @@ TEST_F(DrmMemoryManagerTest, givenMemoryManagerWhenLimitedRangeAllocatorSetThenH
907907 EXPECT_GT (memoryManager->getGfxPartition (0 )->getHeapLimit (HeapIndex::HEAP_STANDARD), gpuAddressLimitedRange + sizeBig);
908908 EXPECT_EQ (memoryManager->getGfxPartition (0 )->getHeapMinimalAddress (HeapIndex::HEAP_STANDARD), gpuAddressLimitedRange);
909909
910- auto gpuInternal32BitAlloc = memoryManager->getGfxPartition (0 )->heapAllocate (internalHeapIndex , sizeBig);
911- EXPECT_LT (memoryManager->getGfxPartition (0 )->getHeapBase (internalHeapIndex ), gpuInternal32BitAlloc);
912- EXPECT_GT (memoryManager->getGfxPartition (0 )->getHeapLimit (internalHeapIndex ), gpuInternal32BitAlloc + sizeBig);
913- EXPECT_EQ (memoryManager->getGfxPartition (0 )->getHeapMinimalAddress (internalHeapIndex ), gpuInternal32BitAlloc);
910+ auto gpuInternal32BitAlloc = memoryManager->getGfxPartition (0 )->heapAllocate (HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY , sizeBig);
911+ EXPECT_LT (memoryManager->getGfxPartition (0 )->getHeapBase (HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY ), gpuInternal32BitAlloc);
912+ EXPECT_GT (memoryManager->getGfxPartition (0 )->getHeapLimit (HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY ), gpuInternal32BitAlloc + sizeBig);
913+ EXPECT_EQ (memoryManager->getGfxPartition (0 )->getHeapMinimalAddress (HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY ), gpuInternal32BitAlloc);
914914}
915915
916916TEST_F (DrmMemoryManagerTest, givenMemoryManagerWhenAskedForAllocationWithAlignmentAndLimitedRangeAllocatorSetAndAcquireGpuRangeFailsThenNullIsReturned) {
@@ -1088,7 +1088,7 @@ TEST_F(DrmMemoryManagerTest, Given32BitDeviceWithMemoryManagerWhenInternalHeapIs
10881088 std::unique_ptr<Device> pDevice (MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr ));
10891089
10901090 size_t size = MemoryConstants::pageSize64k;
1091- auto alloc = memoryManager->getGfxPartition (0 )->heapAllocate (internalHeapIndex , size);
1091+ auto alloc = memoryManager->getGfxPartition (0 )->heapAllocate (HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY , size);
10921092 EXPECT_NE (0llu, alloc);
10931093
10941094 size_t allocationSize = 4 * GB;
@@ -2379,7 +2379,7 @@ TEST_F(DrmMemoryManagerBasic, givenDefaultDrmMemoryManagerWhenItIsQueriedForInte
23792379 true ,
23802380 true ,
23812381 executionEnvironment));
2382- auto heapBase = memoryManager->getGfxPartition (0 )->getHeapBase (internalHeapIndex );
2382+ auto heapBase = memoryManager->getGfxPartition (0 )->getHeapBase (HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY );
23832383 EXPECT_EQ (heapBase, memoryManager->getInternalHeapBaseAddress (0 ));
23842384}
23852385
0 commit comments