summaryrefslogtreecommitdiffstats
path: root/dynamic-layers
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers')
-rw-r--r--dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0004-refactor-use-std-numeric_limits-to-get-max-value.patch107
-rw-r--r--dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0005-include-cstdint-for-drm-tip-helper.patch30
-rw-r--r--dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0006-test-excludes-include-cstdint.patch32
-rw-r--r--dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb7
4 files changed, 176 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0004-refactor-use-std-numeric_limits-to-get-max-value.patch b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0004-refactor-use-std-numeric_limits-to-get-max-value.patch
new file mode 100644
index 00000000..2d857c6b
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0004-refactor-use-std-numeric_limits-to-get-max-value.patch
@@ -0,0 +1,107 @@
1From 3e7b32bf2d6042314772249532e80517e9126bc5 Mon Sep 17 00:00:00 2001
2From: Bartosz Dunajski <bartosz.dunajski@intel.com>
3Date: Wed, 7 Jan 2026 08:11:57 +0000
4Subject: [PATCH] refactor: use std::numeric_limits to get max value
5
6Newer GCC (16.x) no longer pulls in <climits> transitively, so the use
7of ULONG_MAX failed to build. Upstream replaced ULONG_MAX with
8std::numeric_limits<uint64_t>::max(), which removes the dependency on
9the macro entirely. Backported verbatim to fix the build on the pinned
10releases/25.48 branch.
11
12Upstream-Status: Backport [https://github.com/intel/compute-runtime/commit/3e7b32bf2d6042314772249532e80517e9126bc5]
13
14Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
15Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
16---
17 shared/source/os_interface/linux/pmt_util.cpp | 9 ++++-----
18 .../linux/product_helper_uuid_xehp_and_later.inl | 4 ++--
19 shared/source/xe_hpc_core/linux/product_helper_pvc.cpp | 4 +++-
20 3 files changed, 9 insertions(+), 8 deletions(-)
21
22diff --git a/shared/source/os_interface/linux/pmt_util.cpp b/shared/source/os_interface/linux/pmt_util.cpp
23index 1f8546afb8e17..6ac63aa99a400 100644
24--- a/shared/source/os_interface/linux/pmt_util.cpp
25+++ b/shared/source/os_interface/linux/pmt_util.cpp
26@@ -1,5 +1,5 @@
27 /*
28- * Copyright (C) 2021-2023 Intel Corporation
29+ * Copyright (C) 2021-2026 Intel Corporation
30 *
31 * SPDX-License-Identifier: MIT
32 *
33@@ -11,12 +11,11 @@
34 #include "shared/source/os_interface/linux/sys_calls.h"
35 #include "shared/source/utilities/directory.h"
36
37-#include <climits>
38-
39 #include <algorithm>
40 #include <array>
41 #include <cstdint>
42 #include <fcntl.h>
43+#include <limits>
44 #include <map>
45 #include <sstream>
46 #include <string_view>
47@@ -75,7 +74,7 @@ bool PmtUtil::readOffset(std::string_view telemDir, uint64_t &offset) {
48 ssize_t bytesRead = 0;
49 std::array<char, 16> offsetString = {'\0'};
50 if (fd > 0) {
51- offset = ULONG_MAX;
52+ offset = std::numeric_limits<uint64_t>::max();
53 bytesRead = SysCalls::pread(fd, offsetString.data(), offsetString.size() - 1, 0);
54 }
55 if (bytesRead <= 0) {
56@@ -85,7 +84,7 @@ bool PmtUtil::readOffset(std::string_view telemDir, uint64_t &offset) {
57 std::replace(offsetString.begin(), offsetString.end(), '\n', '\0');
58 offset = std::strtoul(offsetString.data(), nullptr, 10);
59
60- if (offset == ULONG_MAX) {
61+ if (offset == std::numeric_limits<uint64_t>::max()) {
62 return false;
63 }
64 return true;
65diff --git a/shared/source/os_interface/linux/product_helper_uuid_xehp_and_later.inl b/shared/source/os_interface/linux/product_helper_uuid_xehp_and_later.inl
66index d2187052db709..cd940cd149b41 100644
67--- a/shared/source/os_interface/linux/product_helper_uuid_xehp_and_later.inl
68+++ b/shared/source/os_interface/linux/product_helper_uuid_xehp_and_later.inl
69@@ -1,5 +1,5 @@
70 /*
71- * Copyright (C) 2021-2025 Intel Corporation
72+ * Copyright (C) 2021-2026 Intel Corporation
73 *
74 * SPDX-License-Identifier: MIT
75 *
76@@ -37,7 +37,7 @@ bool ProductHelperHw<gfxProduct>::getUuid(DriverModel *driverModel, const uint32
77 return false;
78 }
79
80- uint64_t offset = ULONG_MAX;
81+ uint64_t offset = std::numeric_limits<uint64_t>::max();
82 if (!PmtUtil::readOffset(telemDir, offset)) {
83 return false;
84 }
85diff --git a/shared/source/xe_hpc_core/linux/product_helper_pvc.cpp b/shared/source/xe_hpc_core/linux/product_helper_pvc.cpp
86index 6451de9b4f6a6..8ea0239c7ef90 100644
87--- a/shared/source/xe_hpc_core/linux/product_helper_pvc.cpp
88+++ b/shared/source/xe_hpc_core/linux/product_helper_pvc.cpp
89@@ -1,5 +1,5 @@
90 /*
91- * Copyright (C) 2021-2025 Intel Corporation
92+ * Copyright (C) 2021-2026 Intel Corporation
93 *
94 * SPDX-License-Identifier: MIT
95 *
96@@ -18,6 +18,8 @@
97 #include "shared/source/utilities/directory.h"
98 #include "shared/source/xe_hpc_core/hw_cmds_pvc.h"
99
100+#include <limits>
101+
102 constexpr static auto gfxProduct = IGFX_PVC;
103
104 namespace NEO {
105--
1062.34.1
107
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0005-include-cstdint-for-drm-tip-helper.patch b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0005-include-cstdint-for-drm-tip-helper.patch
new file mode 100644
index 00000000..5aed9c60
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0005-include-cstdint-for-drm-tip-helper.patch
@@ -0,0 +1,30 @@
1From 1c113f79f6ad9c6a2f943ea7e5f82f81de98b739 Mon Sep 17 00:00:00 2001
2From: Yogesh Tyagi <yogesh.tyagi@intel.com>
3Date: Mon, 9 Jun 2026 12:05:00 +0000
4Subject: [PATCH] include cstdint for drm tip helper
5
6Fixes compile failure where fixed-width integer types are used without
7including <cstdint> in drm_tip_helper.cpp.
8
9This is only required on the pinned releases/25.48 branch. Upstream
10removed this file entirely when deprecating DG1 support, so there is no
11upstream change to submit:
12 873fbd09c38dba9416b62526fa601d1ffe480142
13 ("refactor: Remove deprecated code for DG1")
14
15Upstream-Status: Inappropriate [file removed upstream in 873fbd09c38d; needed only on releases/25.48]
16
17Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
18---
19 .../source/os_interface/linux/local/dg1/drm_tip_helper.cpp | 1 +
20 1 file changed, 1 insertion(+)
21
22Index: intel-compute-runtime-25.48.36300.8/shared/source/os_interface/linux/local/dg1/drm_tip_helper.cpp
23===================================================================
24--- intel-compute-runtime-25.48.36300.8.orig/shared/source/os_interface/linux/local/dg1/drm_tip_helper.cpp
25+++ intel-compute-runtime-25.48.36300.8/shared/source/os_interface/linux/local/dg1/drm_tip_helper.cpp
26@@ -10,1 +10,2 @@
27-#include <memory>
28+#include <cstdint>
29+#include <memory>
30
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0006-test-excludes-include-cstdint.patch b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0006-test-excludes-include-cstdint.patch
new file mode 100644
index 00000000..278f1e13
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0006-test-excludes-include-cstdint.patch
@@ -0,0 +1,32 @@
1From c6f4f71684d40f96f0f401ecf5f873fc855b9231 Mon Sep 17 00:00:00 2001
2From: Yogesh Tyagi <yogesh.tyagi@intel.com>
3Date: Tue, 10 Jun 2026 00:00:00 +0000
4Subject: [PATCH] test excludes include cstdint
5
6Fixes compile failure in shared test helper where uint32_t is used
7without including <cstdint>.
8
9Upstream already added this include on master; backported here for the
10pinned releases/25.48 branch:
11 d682c49ef1c9782873ed3c7684e6a07180531b48
12 ("test: add more missing headers for GCC 15")
13
14Upstream-Status: Backport [https://github.com/intel/compute-runtime/commit/d682c49ef1c9782873ed3c7684e6a07180531b48]
15
16Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
17---
18 .../shared/test/common/test_macros/test_excludes.cpp | 1 +
19 1 file changed, 1 insertion(+)
20
21Index: intel-compute-runtime-25.48.36300.8/shared/test/common/test_macros/test_excludes.cpp
22===================================================================
23--- intel-compute-runtime-25.48.36300.8.orig/shared/test/common/test_macros/test_excludes.cpp
24+++ intel-compute-runtime-25.48.36300.8/shared/test/common/test_macros/test_excludes.cpp
25@@ -12,6 +12,7 @@
26 #include <map>
27 #include <memory>
28 #include <string>
29+#include <cstdint>
30 #include <unordered_set>
31
32 using namespace NEO;
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb
index c1209e33..de8ecaa4 100644
--- a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb
+++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb
@@ -11,6 +11,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eca6ec6997e18db166db7109cdbe611c \
11SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=releases/25.48 \ 11SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=releases/25.48 \
12 file://0002-Build-not-able-to-locate-cpp_generation_tool.patch \ 12 file://0002-Build-not-able-to-locate-cpp_generation_tool.patch \
13 file://0003-external-ocloc.patch \ 13 file://0003-external-ocloc.patch \
14 file://0004-refactor-use-std-numeric_limits-to-get-max-value.patch \
15 file://0005-include-cstdint-for-drm-tip-helper.patch \
16 file://0006-test-excludes-include-cstdint.patch \
14 " 17 "
15 18
16SRCREV = "762b34beb3f6991e57d1562f587ab91ff220d708" 19SRCREV = "762b34beb3f6991e57d1562f587ab91ff220d708"
@@ -42,6 +45,10 @@ EXTRA_OECMAKE:append:class-target = " \
42 -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ 45 -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \
43 " 46 "
44 47
48# Newer compilers emit -Wsfinae-incomplete in templates included by image.cpp/task_information.cpp.
49# Keep -Werror globally but do not fail on this single warning class.
50CXXFLAGS:append = " -Wno-error=sfinae-incomplete"
51
45PACKAGECONFIG ??= "" 52PACKAGECONFIG ??= ""
46PACKAGECONFIG[levelzero] = "-DBUILD_WITH_L0=ON, -DBUILD_WITH_L0=OFF, level-zero" 53PACKAGECONFIG[levelzero] = "-DBUILD_WITH_L0=ON, -DBUILD_WITH_L0=OFF, level-zero"
47 54