diff options
Diffstat (limited to '')
-rw-r--r-- | lang/intel-compute-runtime/files/patch-includes | 5 | ||||
-rw-r--r-- | lang/intel-compute-runtime/files/patch-max_freq | 15 | ||||
-rw-r--r-- | lang/intel-compute-runtime/files/patch-no-blitter | 20 |
3 files changed, 18 insertions, 22 deletions
diff --git a/lang/intel-compute-runtime/files/patch-includes b/lang/intel-compute-runtime/files/patch-includes index 2d6951a6c4a0..f8476932ceeb 100644 --- a/lang/intel-compute-runtime/files/patch-includes +++ b/lang/intel-compute-runtime/files/patch-includes @@ -15,16 +15,15 @@ runtime/tbx/tbx_sockets_imp.cpp:107:9: error: unknown type name 'sockaddr_in'; d struct sockaddr { ^ ---- shared/source/os_interface/linux/drm_neo.cpp.orig 2020-02-28 16:16:42 UTC +--- shared/source/os_interface/linux/drm_neo.cpp.orig 2020-04-17 18:43:38 UTC +++ shared/source/os_interface/linux/drm_neo.cpp -@@ -17,10 +17,10 @@ +@@ -19,9 +19,9 @@ #include "shared/source/os_interface/os_interface.h" #include "shared/source/utilities/directory.h" +#include <climits> #include <cstdio> #include <cstring> - #include <fstream> -#include <linux/limits.h> namespace NEO { diff --git a/lang/intel-compute-runtime/files/patch-max_freq b/lang/intel-compute-runtime/files/patch-max_freq index d92b9bbb46f8..96a77436988b 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-04-11 07:41:07 UTC -+++ shared/source/os_interface/linux/drm_neo.cpp -@@ -24,6 +24,13 @@ +--- shared/source/os_interface/linux/drm_query.cpp.orig 2020-04-17 18:43:38 UTC ++++ shared/source/os_interface/linux/drm_query.cpp +@@ -11,10 +11,41 @@ + #include <fstream> - #include <linux/limits.h> +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#include <sys/param.h> @@ -18,10 +18,7 @@ + namespace NEO { - namespace IoctlHelper { -@@ -104,6 +111,30 @@ int Drm::getEnabledPooledEu(int &enabled) { - - int Drm::getMaxGpuFrequency(int &maxGpuFrequency) { + int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int &maxGpuFrequency) { maxGpuFrequency = 0; +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) + struct stat sb; @@ -50,7 +47,7 @@ std::string clockSysFsPath = getSysFsPciPath(); clockSysFsPath += "/gt_max_freq_mhz"; -@@ -115,6 +146,7 @@ int Drm::getMaxGpuFrequency(int &maxGpuFrequency) { +@@ -26,6 +57,7 @@ int Drm::getMaxGpuFrequency(HardwareInfo &hwInfo, int ifs >> maxGpuFrequency; ifs.close(); diff --git a/lang/intel-compute-runtime/files/patch-no-blitter b/lang/intel-compute-runtime/files/patch-no-blitter index 9fa59d0f9c03..ca34842f0132 100644 --- a/lang/intel-compute-runtime/files/patch-no-blitter +++ b/lang/intel-compute-runtime/files/patch-no-blitter @@ -23,15 +23,15 @@ frame #4: 0x000000000020df59 ze_peak`L0Context::init_xe(this=0x00007fffffffde70) 185 } 186 if (verbose) ---- level_zero/core/source/device/device_imp.cpp.orig 2020-04-11 07:41:07 UTC -+++ level_zero/core/source/device/device_imp.cpp -@@ -725,9 +725,7 @@ ze_result_t DeviceImp::isCreatedCommandListCopyOnly(co - auto hwInfo = neoDevice->getHardwareInfo(); - if (hwInfo.capabilityTable.blitterOperationsSupported) { - *useBliter = true; -- return ZE_RESULT_SUCCESS; +--- level_zero/core/source/device/device_imp.h.orig 2020-04-17 18:43:38 UTC ++++ level_zero/core/source/device/device_imp.h +@@ -99,9 +99,7 @@ struct DeviceImp : public Device { + auto hwInfo = neoDevice->getHardwareInfo(); + if (hwInfo.capabilityTable.blitterOperationsSupported) { + *useBliter = NEO::DebugManager.flags.EnableCopyOnlyCommandListsAndCommandQueues.get(); +- return ZE_RESULT_SUCCESS; + } +- return ZE_RESULT_ERROR_INVALID_ENUMERATION; } -- return ZE_RESULT_ERROR_INVALID_ENUMERATION; + return ZE_RESULT_SUCCESS; } - return ZE_RESULT_SUCCESS; - } |