mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
DrmAllocation constructor accepts allocationType.
Change-Id: I6a6457948ada7eb59537d17b966278d114f802c6 Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user