diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2022-04-25 08:39:54 +0000 |
|---|---|---|
| committer | Jan Beich <jbeich@FreeBSD.org> | 2022-05-07 00:57:54 +0000 |
| commit | 7992f84772edf22c2d84a8264b11459fca18c70e (patch) | |
| tree | 1a84de8d8c0e62a154d66e5d6fef5d41fcd1f661 /lang/intel-compute-runtime/files | |
| parent | graphics/glx-utils: update to 8.4.0.85 (diff) | |
lang/intel-compute-runtime: update to 22.18.23063
Changes: https://github.com/intel/compute-runtime/compare/22.17.23034...22.18.23063
Reported by: GitHub (watch releases)
Diffstat (limited to 'lang/intel-compute-runtime/files')
| -rw-r--r-- | lang/intel-compute-runtime/files/patch-userptr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lang/intel-compute-runtime/files/patch-userptr b/lang/intel-compute-runtime/files/patch-userptr index bcaa948d75ee..189b17e940a8 100644 --- a/lang/intel-compute-runtime/files/patch-userptr +++ b/lang/intel-compute-runtime/files/patch-userptr @@ -38,16 +38,16 @@ frame #5: 0x000000080104b4e5 libigdrcl.so`NEO::DrmMemoryManager::DrmMemoryManage 60 } 61 } ---- shared/source/os_interface/linux/drm_memory_manager.cpp.orig 2020-02-28 16:16:42 UTC +--- shared/source/os_interface/linux/drm_memory_manager.cpp.orig 2022-04-25 08:39:54 UTC +++ shared/source/os_interface/linux/drm_memory_manager.cpp -@@ -148,7 +148,17 @@ NEO::BufferObject *DrmMemoryManager::allocUserptr(uint - userptr.flags = static_cast<uint32_t>(flags); +@@ -246,7 +246,17 @@ NEO::BufferObject *DrmMemoryManager::allocUserptr(uint + auto &drm = this->getDrm(rootDeviceIndex); - if (this->getDrm(rootDeviceIndex).ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { + if (drm.ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { - return nullptr; + if (errno == ENODEV && userptr.flags == 0) { + userptr.flags = I915_USERPTR_UNSYNCHRONIZED; -+ if (this->getDrm(rootDeviceIndex).ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { ++ if (drm.ioctl(DRM_IOCTL_I915_GEM_USERPTR, &userptr) != 0) { + if (geteuid() != 0) { + printDebugString(true, stderr, "%s", "ioctl(I915_GEM_USERPTR) failed. Try running as root but expect poor stability.\n"); + } @@ -58,4 +58,4 @@ frame #5: 0x000000080104b4e5 libigdrcl.so`NEO::DrmMemoryManager::DrmMemoryManage + } } - auto res = new (std::nothrow) BufferObject(&getDrm(rootDeviceIndex), userptr.handle, rootDeviceIndex); + PRINT_DEBUG_STRING(DebugManager.flags.PrintBOCreateDestroyResult.get(), stdout, "Created new BO with GEM_USERPTR, handle: BO-%d\n", userptr.handle); |
