Remove not needed code.
Change-Id: I5b0fd2960ed7777bc7603013071a431af6d435c5
This commit is contained in:
parent
d3f71cfb04
commit
1dc3a94ac8
|
@ -60,11 +60,6 @@ class WddmAllocation : public GraphicsAllocation {
|
||||||
return this->alignedCpuPtr;
|
return this->alignedCpuPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setAlignedCpuPtr(void *ptr) {
|
|
||||||
this->alignedCpuPtr = ptr;
|
|
||||||
this->cpuPtr = ptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t getAlignedSize() const {
|
size_t getAlignedSize() const {
|
||||||
return this->alignedSize;
|
return this->alignedSize;
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,8 +99,6 @@ GraphicsAllocation *WddmMemoryManager::allocateGraphicsMemory64kb(size_t size, s
|
||||||
|
|
||||||
auto cpuPtr = lockResource(wddmAllocation);
|
auto cpuPtr = lockResource(wddmAllocation);
|
||||||
wddmAllocation->setLocked(true);
|
wddmAllocation->setLocked(true);
|
||||||
|
|
||||||
wddmAllocation->setAlignedCpuPtr(cpuPtr);
|
|
||||||
// 64kb map is not needed
|
// 64kb map is not needed
|
||||||
auto status = wddm->mapGpuVirtualAddress(wddmAllocation, cpuPtr, false, false, false);
|
auto status = wddm->mapGpuVirtualAddress(wddmAllocation, cpuPtr, false, false, false);
|
||||||
DEBUG_BREAK_IF(!status);
|
DEBUG_BREAK_IF(!status);
|
||||||
|
|
Loading…
Reference in New Issue