From 1dc3a94ac8b9afc8f4cc26a51e8c25fd9c393bac Mon Sep 17 00:00:00 2001 From: "Mrozek, Michal" Date: Tue, 30 Oct 2018 12:42:48 +0100 Subject: [PATCH] Remove not needed code. Change-Id: I5b0fd2960ed7777bc7603013071a431af6d435c5 --- runtime/os_interface/windows/wddm_allocation.h | 5 ----- runtime/os_interface/windows/wddm_memory_manager.cpp | 2 -- 2 files changed, 7 deletions(-) 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);