From f005574f3e14efbbc525966bbed0f75bd2a808b7 Mon Sep 17 00:00:00 2001 From: Slawomir Milczarek Date: Tue, 19 Nov 2024 11:14:23 +0000 Subject: [PATCH] feature: ioctl helper for allocUserPtr in createAllocWithAlignmentFromUserptr Related-To: NEO-12846 Signed-off-by: Slawomir Milczarek --- shared/source/os_interface/linux/drm_memory_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/source/os_interface/linux/drm_memory_manager.cpp b/shared/source/os_interface/linux/drm_memory_manager.cpp index 2cc672499b..bbaff98c69 100644 --- a/shared/source/os_interface/linux/drm_memory_manager.cpp +++ b/shared/source/os_interface/linux/drm_memory_manager.cpp @@ -454,7 +454,8 @@ DrmAllocation *DrmMemoryManager::createAllocWithAlignmentFromUserptr(const Alloc return nullptr; } - std::unique_ptr bo(allocUserptr(reinterpret_cast(res), size, allocationData.rootDeviceIndex)); + auto ioctlHelper = getDrm(allocationData.rootDeviceIndex).getIoctlHelper(); + std::unique_ptr bo(ioctlHelper->allocUserptr(*this, reinterpret_cast(res), size, allocationData.rootDeviceIndex)); if (!bo) { alignedFreeWrapper(res); return nullptr;