Fix for enum's name
change lowercase 'b' for uppercase 'B' Change-Id: I35f973bc7966e9d5b9f38d4e4a370215e80012ac
This commit is contained in:
parent
764aa45137
commit
edb3e14147
|
@ -32,7 +32,7 @@ enum class HeapIndex : uint32_t {
|
|||
HEAP_EXTERNAL_DEVICE_MEMORY = 2u,
|
||||
HEAP_EXTERNAL = 3u,
|
||||
HEAP_STANDARD,
|
||||
HEAP_STANDARD64Kb,
|
||||
HEAP_STANDARD64KB,
|
||||
HEAP_SVM,
|
||||
HEAP_LIMITED
|
||||
};
|
||||
|
|
|
@ -380,7 +380,7 @@ HeapIndex MemoryManager::selectHeap(const GraphicsAllocation *allocation, const
|
|||
return HeapIndex::HEAP_SVM;
|
||||
}
|
||||
if (allocation && allocation->gmm->gmmResourceInfo->is64KBPageSuitable()) {
|
||||
return HeapIndex::HEAP_STANDARD64Kb;
|
||||
return HeapIndex::HEAP_STANDARD64KB;
|
||||
}
|
||||
return HeapIndex::HEAP_STANDARD;
|
||||
}
|
||||
|
|
|
@ -331,7 +331,7 @@ bool Wddm::mapGpuVirtualAddressImpl(Gmm *gmm, D3DKMT_HANDLE handle, void *cpuPtr
|
|||
MapGPUVA.MinimumAddress = gfxPartition.Standard.Base;
|
||||
MapGPUVA.MaximumAddress = gfxPartition.Standard.Limit;
|
||||
break;
|
||||
case HeapIndex::HEAP_STANDARD64Kb:
|
||||
case HeapIndex::HEAP_STANDARD64KB:
|
||||
UNRECOVERABLE_IF(hardwareInfoTable[productFamily]->capabilityTable.gpuAddressSpace != MemoryConstants::max48BitAddress);
|
||||
MapGPUVA.MinimumAddress = gfxPartition.Standard64KB.Base;
|
||||
MapGPUVA.MaximumAddress = gfxPartition.Standard64KB.Limit;
|
||||
|
|
|
@ -1663,7 +1663,7 @@ TEST(HeapSelectorTest, givenFullAddressSpaceWhenSelectingHeapForExternalAllocati
|
|||
if (platformDevices[0]->capabilityTable.gpuAddressSpace != MemoryConstants::max48BitAddress) {
|
||||
return;
|
||||
}
|
||||
EXPECT_EQ(HeapIndex::HEAP_STANDARD64Kb, MemoryManager::selectHeap(&allocation, nullptr, *platformDevices[0]));
|
||||
EXPECT_EQ(HeapIndex::HEAP_STANDARD64KB, MemoryManager::selectHeap(&allocation, nullptr, *platformDevices[0]));
|
||||
}
|
||||
|
||||
TEST(HeapSelectorTest, givenFullAddressSpaceWhenSelectingHeapForExternalAllocationWithoutPtrAndResourceIsNot64KSuitableThenStandardHeapIsUsed) {
|
||||
|
|
Loading…
Reference in New Issue