Remove unused method obtainGpuAddressIfNeeded()

Change-Id: I0b0ff5c793d31c97f488339dcb75aba617871f88
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
Pawel Wilma
2019-12-04 15:00:11 +01:00
committed by sys_ocldev
parent 82bc594af0
commit baeac08662
2 changed files with 0 additions and 12 deletions

View File

@@ -543,17 +543,6 @@ bool WddmMemoryManager::createGpuAllocationsWithRetry(WddmAllocation *allocation
return true;
}
void WddmMemoryManager::obtainGpuAddressIfNeeded(WddmAllocation *allocation) {
if (allocation->getNumHandles() > 1u) {
auto heapIndex = selectHeap(allocation, false, executionEnvironment.isFullRangeSvm());
allocation->reservedSizeForGpuVirtualAddress = allocation->getAlignedSize();
auto gfxPartition = getGfxPartition(allocation->getRootDeviceIndex());
allocation->reservedGpuVirtualAddress = wddm->reserveGpuVirtualAddress(gfxPartition->getHeapMinimalAddress(heapIndex),
gfxPartition->getHeapLimit(heapIndex),
allocation->reservedSizeForGpuVirtualAddress);
}
}
void *WddmMemoryManager::reserveCpuAddressRange(size_t size) {
void *reservePtr = nullptr;
wddm->reserveValidAddressRange(size, reservePtr);

View File

@@ -82,7 +82,6 @@ class WddmMemoryManager : public MemoryManager {
bool mapGpuVirtualAddress(WddmAllocation *graphicsAllocation, const void *requiredGpuPtr);
bool mapGpuVaForOneHandleAllocation(WddmAllocation *graphicsAllocation, const void *requiredGpuPtr);
bool createGpuAllocationsWithRetry(WddmAllocation *graphicsAllocation);
void obtainGpuAddressIfNeeded(WddmAllocation *graphicsAllocation);
AlignedMallocRestrictions mallocRestrictions;
private: