mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Remove unused method obtainGpuAddressIfNeeded()
Change-Id: I0b0ff5c793d31c97f488339dcb75aba617871f88 Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user