Skip to content

Commit baeac08

Browse files
pwilmaCompute-Runtime-Automation
authored andcommitted
Remove unused method obtainGpuAddressIfNeeded()
Change-Id: I0b0ff5c793d31c97f488339dcb75aba617871f88 Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
1 parent 82bc594 commit baeac08

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

runtime/os_interface/windows/wddm_memory_manager.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -543,17 +543,6 @@ bool WddmMemoryManager::createGpuAllocationsWithRetry(WddmAllocation *allocation
543543
return true;
544544
}
545545

546-
void WddmMemoryManager::obtainGpuAddressIfNeeded(WddmAllocation *allocation) {
547-
if (allocation->getNumHandles() > 1u) {
548-
auto heapIndex = selectHeap(allocation, false, executionEnvironment.isFullRangeSvm());
549-
allocation->reservedSizeForGpuVirtualAddress = allocation->getAlignedSize();
550-
auto gfxPartition = getGfxPartition(allocation->getRootDeviceIndex());
551-
allocation->reservedGpuVirtualAddress = wddm->reserveGpuVirtualAddress(gfxPartition->getHeapMinimalAddress(heapIndex),
552-
gfxPartition->getHeapLimit(heapIndex),
553-
allocation->reservedSizeForGpuVirtualAddress);
554-
}
555-
}
556-
557546
void *WddmMemoryManager::reserveCpuAddressRange(size_t size) {
558547
void *reservePtr = nullptr;
559548
wddm->reserveValidAddressRange(size, reservePtr);

runtime/os_interface/windows/wddm_memory_manager.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ class WddmMemoryManager : public MemoryManager {
8282
bool mapGpuVirtualAddress(WddmAllocation *graphicsAllocation, const void *requiredGpuPtr);
8383
bool mapGpuVaForOneHandleAllocation(WddmAllocation *graphicsAllocation, const void *requiredGpuPtr);
8484
bool createGpuAllocationsWithRetry(WddmAllocation *graphicsAllocation);
85-
void obtainGpuAddressIfNeeded(WddmAllocation *graphicsAllocation);
8685
AlignedMallocRestrictions mallocRestrictions;
8786

8887
private:

0 commit comments

Comments
 (0)