aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-04-25 08:39:54 +0000
committerJan Beich <jbeich@FreeBSD.org>2022-05-07 00:57:54 +0000
commit7992f84772edf22c2d84a8264b11459fca18c70e (patch)
tree1a84de8d8c0e62a154d66e5d6fef5d41fcd1f661
parent50281762fa7fa376e5836a714b1332c3b612141a (diff)
downloadports-7992f84772edf22c2d84a8264b11459fca18c70e.tar.gz
ports-7992f84772edf22c2d84a8264b11459fca18c70e.zip
lang/intel-compute-runtime: update to 22.18.23063
-rw-r--r--lang/intel-compute-runtime/Makefile2
-rw-r--r--lang/intel-compute-runtime/distinfo6
-rw-r--r--lang/intel-compute-runtime/files/patch-userptr12
3 files changed, 10 insertions, 10 deletions
diff --git a/lang/intel-compute-runtime/Makefile b/lang/intel-compute-runtime/Makefile
index 0cff1f981e71..15d0041c0c3d 100644
--- a/lang/intel-compute-runtime/Makefile
+++ b/lang/intel-compute-runtime/Makefile
@@ -1,5 +1,5 @@
PORTNAME= compute-runtime
-DISTVERSION= 22.17.23034
+DISTVERSION= 22.18.23063
CATEGORIES= lang
PKGNAMEPREFIX= intel-
PKGNAMESUFFIX= -${FLAVOR}
diff --git a/lang/intel-compute-runtime/distinfo b/lang/intel-compute-runtime/distinfo
index 310fd1018785..7d517b45782c 100644
--- a/lang/intel-compute-runtime/distinfo
+++ b/lang/intel-compute-runtime/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1650469592
-SHA256 (intel-compute-runtime-22.17.23034_GH0.tar.gz) = d46ef4801b202f031d516da62e7e4f7da26288238f8371f67d63e1dd57d98b62
-SIZE (intel-compute-runtime-22.17.23034_GH0.tar.gz) = 5345890
+TIMESTAMP = 1650875994
+SHA256 (intel-compute-runtime-22.18.23063_GH0.tar.gz) = 3dc6a530838cd80c17fa4de64e615e5aa228623029cd7da4564ced378a5264fa
+SIZE (intel-compute-runtime-22.18.23063_GH0.tar.gz) = 5355944
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);