diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2020-04-17 14:49:31 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2020-04-17 14:49:31 +0000 |
commit | 3b2acc8b25ec23e19cadc093bfe91bcedc392697 (patch) | |
tree | 4b1867de7d1f817b84f67f9a025097fe13371f6f /lang/intel-compute-runtime/files/patch-max_freq | |
parent | Fix build of v4l-utils when libsysinfo is not installed. (diff) |
lang/intel-compute-runtime: update to 20.15.16524
Changes: https://github.com/intel/compute-runtime/compare/20.14.16441...20.15.16524
Reported by: GitHub (watch releases)
Notes
Notes:
svn path=/head/; revision=531938
Diffstat (limited to 'lang/intel-compute-runtime/files/patch-max_freq')
-rw-r--r-- | lang/intel-compute-runtime/files/patch-max_freq | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lang/intel-compute-runtime/files/patch-max_freq b/lang/intel-compute-runtime/files/patch-max_freq index 44e3b0b82387..c0e4d7e751cc 100644 --- a/lang/intel-compute-runtime/files/patch-max_freq +++ b/lang/intel-compute-runtime/files/patch-max_freq @@ -3,11 +3,11 @@ $ clinfo | fgrep clock Max clock frequency 0MHz ---- shared/source/os_interface/linux/drm_neo.cpp.orig 2020-03-06 21:12:07 UTC +--- shared/source/os_interface/linux/drm_neo.cpp.orig 2020-04-11 07:41:07 UTC +++ shared/source/os_interface/linux/drm_neo.cpp -@@ -22,6 +22,11 @@ - #include <cstring> +@@ -24,6 +24,11 @@ #include <fstream> + #include <linux/limits.h> +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#include <sys/param.h> @@ -16,8 +16,8 @@ + namespace NEO { - const char *Drm::sysFsDefaultGpuPath = "/drm/card0"; -@@ -106,6 +111,16 @@ int Drm::getEnabledPooledEu(int &enabled) { + namespace IoctlHelper { +@@ -104,6 +109,16 @@ int Drm::getEnabledPooledEu(int &enabled) { int Drm::getMaxGpuFrequency(int &maxGpuFrequency) { maxGpuFrequency = 0; @@ -31,10 +31,10 @@ + + maxGpuFrequency = std::stoi(max_freq); +#else - int deviceID = 0; - int ret = getDeviceID(deviceID); - if (ret != 0) { -@@ -127,6 +142,7 @@ int Drm::getMaxGpuFrequency(int &maxGpuFrequency) { + std::string clockSysFsPath = getSysFsPciPath(); + + clockSysFsPath += "/gt_max_freq_mhz"; +@@ -115,6 +130,7 @@ int Drm::getMaxGpuFrequency(int &maxGpuFrequency) { ifs >> maxGpuFrequency; ifs.close(); |