DrmAllocation constructor accepts allocationType.

Change-Id: I6a6457948ada7eb59537d17b966278d114f802c6
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
Piotr Fusik
2019-02-27 11:38:25 +01:00
committed by sys_ocldev
parent 612121d5fe
commit 8febabfbd6
8 changed files with 45 additions and 48 deletions

View File

@@ -60,7 +60,7 @@ GraphicsAllocation *OsAgnosticMemoryManager::allocateGraphicsMemoryForNonSvmHost
auto alignedPtr = alignDown(reinterpret_cast<char *>(cpuPtr), MemoryConstants::pageSize);
auto offsetInPage = reinterpret_cast<char *>(cpuPtr) - alignedPtr;
memoryAllocation = new MemoryAllocation(GraphicsAllocation::AllocationType::UNDECIDED, nullptr, cpuPtr, reinterpret_cast<uint64_t>(alignedPtr),
memoryAllocation = new MemoryAllocation(GraphicsAllocation::AllocationType::EXTERNAL_HOST_PTR, nullptr, cpuPtr, reinterpret_cast<uint64_t>(alignedPtr),
size, counter, MemoryPool::System4KBPages, false);
memoryAllocation->allocationOffset = offsetInPage;