diff --git a/runtime/os_interface/windows/wddm_allocation.h b/runtime/os_interface/windows/wddm_allocation.h index 0df360b1f1..075da83877 100644 --- a/runtime/os_interface/windows/wddm_allocation.h +++ b/runtime/os_interface/windows/wddm_allocation.h @@ -60,11 +60,6 @@ class WddmAllocation : public GraphicsAllocation { return this->alignedCpuPtr; } - void setAlignedCpuPtr(void *ptr) { - this->alignedCpuPtr = ptr; - this->cpuPtr = ptr; - } - size_t getAlignedSize() const { return this->alignedSize; } diff --git a/runtime/os_interface/windows/wddm_memory_manager.cpp b/runtime/os_interface/windows/wddm_memory_manager.cpp index 119b4c9c47..2d768abe00 100644 --- a/runtime/os_interface/windows/wddm_memory_manager.cpp +++ b/runtime/os_interface/windows/wddm_memory_manager.cpp @@ -99,8 +99,6 @@ GraphicsAllocation *WddmMemoryManager::allocateGraphicsMemory64kb(size_t size, s auto cpuPtr = lockResource(wddmAllocation); wddmAllocation->setLocked(true); - - wddmAllocation->setAlignedCpuPtr(cpuPtr); // 64kb map is not needed auto status = wddm->mapGpuVirtualAddress(wddmAllocation, cpuPtr, false, false, false); DEBUG_BREAK_IF(!status);