mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Change alignment for forced created ptr in image
Related-To: NEO-5723 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5f41e00909
commit
df1162ff4d
@@ -344,8 +344,8 @@ Image *Image::create(Context *context,
|
||||
const_cast<MemoryProperties &>(memoryPropertiesToSet), hwInfo,
|
||||
context->getDeviceBitfieldForAllocation(rootDeviceIndex));
|
||||
allocProperties.flags.crossRootDeviceAccess = true;
|
||||
|
||||
hostPtrForced = alignedMalloc(hostPtrMinSize, MemoryConstants::pageSize64k);
|
||||
auto hostPtrForcedSize = alignUp(hostPtrMinSize, MemoryConstants::pageSize);
|
||||
hostPtrForced = alignedMalloc(hostPtrForcedSize, MemoryConstants::pageSize);
|
||||
allocationInfo[rootDeviceIndex].memory = memoryManager->allocateGraphicsMemoryWithProperties(allocProperties, hostPtrForced);
|
||||
if (allocationInfo[rootDeviceIndex].memory) {
|
||||
cpuPtr = reinterpret_cast<void *>(allocationInfo[rootDeviceIndex].memory->getUnderlyingBuffer());
|
||||
|
||||
Reference in New Issue
Block a user