From patchwork Fri Aug 7 05:44:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QsO2c3rDtnJtw6lueWkgWm9sdMOhbg==?= X-Patchwork-Id: 94721 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 506A8C2A09B for ; Fri, 7 Aug 2026 05:45:02 +0000 (UTC) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36763.1786081494525233605 for ; Thu, 06 Aug 2026 22:44:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=dmPQX+ht; spf=pass (domain: gmail.com, ip: 209.85.221.48, mailfrom: zboszor@gmail.com) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-480033bdcf4so45625f8f.2 for ; Thu, 06 Aug 2026 22:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786081493; x=1786686293; darn=lists.openembedded.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=wDsXbtZB7HOoNUjjC/lDw3MP7PlugOMWIN1P5gTdr4U=; b=dmPQX+htqU3PA1clakJQ7L1wQw7/Ex6AUj/XS4tk2wBl1reDtlCnkLvv3TUcgAmryZ 4k9dlveaxdzPURp2BGR/X2H6R8ffyRBld+GUE+ox/ia1PYPmvpTm8W0CxXVaYpRzw5bJ HkQDAHbmP3q45/GEmD5UCnebEhdces0nHoYss7E7QBNJIw4JNUhgTfOAT9ImZi5cwM71 1kAJoCSFLaEk8lky0WrvoHKQ8kbkDa7RyfUpDGTPgm6bRjFCd69SO6W3RkZJkoRQXvni qqq4/NJEwcCR590cXgOt3sCqCvEpLW4ZQ3qd0SwTuFcC19lkh1mkSQLiBAGHREB++FAI hVWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786081493; x=1786686293; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=wDsXbtZB7HOoNUjjC/lDw3MP7PlugOMWIN1P5gTdr4U=; b=ruU1Pwm1uGT3HDzOmmipQy3k9O7lD3B5CmcofXAvXc+3yS9vPXxXucx8UQhGOOP9D2 QRFeA33PrB7hL50rMI4m7dX5QrXd5E00BgKPjeC758S0/NnkVHtd/73yoRnlyXgN+qBr 5B7xf0ppq3djcZf0GxzY+Zz2wLBUKYoMxRaDIU0cyQGBtUXq96eyyknVyQs08w9GxHi8 Ztue+0uEV8vniDp4h7AhsuaFFvBBiqVQWlzbA37r3vQYcFw9iLO7D6Gfj8cAeLd1nXBJ Tsk4bOIFKE8m4EFCSadGkvgBmdwk3aL5M3DfaH/WKYv6yzW623PetHVXib1ncxW26CJI MdUQ== X-Gm-Message-State: AOJu0YxLfvuUDldD+Zr7KAOFoY70LuPJlkX9wreRW+y1LaVm//5mZ/9h hha0T062i+EgmgFz9WVVGbGJ9+fa5RyDDQxg13Uj+dDOTN+9zTe+RfQHSPr4nw== X-Gm-Gg: AR+sD10f1lLO0zu5yE7Q2xikol6f4nxCME8MyS6pW1kPTsL8TENGhlakTD/fIE0ZIsI g/k+FzOTp6WU4R29ryxj4oVZuW8jI4Jbjxr+ds80Uebp2IljMv7BfPt/pMRxXLoAz97VKN+e9+A 2iIrvFUvKEQsVRnEHzLy/6JiBpDAcKyRPrjLRpN6qtaNaM6pnGDC7Njsi7KIc8IQIWprX08deX2 +objAIFfIfKAZBFHSw33ZEA8wbGJhx+og1ZlJdv+ST/YJKaqUkoVA4hCDypcGMv4BOzHFj8r0jI 4L+5wXREdVwquE4iL/Ii09Yi5mwe+yL1G5YuAUJgX43mwGK+XjD2AMxwyB5dH4VNVCf8+M+OcGR xZ2fhToy7VNf2d/u9xs5b0tSWPPqndhngh2C1iNIAGgit3mFh4nXK8uNHP+swCp3f4s7lhv7ukj ESRzQ/qwmkaTZJoh4ijrGXtVHDzERXmq+63X7/+wU0D1m6PE/P2BBZ1mbuH/TDlSMCcjnS4Sj3N RyUX7DL0ziAbqAqrigMmA5eyAnT05WmdWBeFMDhmdk04FJ/MN34d54Fu26neyTRXjegCvdu9bRr 1/Qz+eNnbMZRmH/wXaPzRutAHjPhubLVBrHz X-Received: by 2002:a05:6000:4006:b0:46e:c978:7ddc with SMTP id ffacd0b85a97d-47fec62e675mr29505080f8f.24.1786081492528; Thu, 06 Aug 2026 22:44:52 -0700 (PDT) Received: from 2A0011100124613F533917970D022288.mobile.pool.telekom.hu (2A0011100124613F533917970D022288.mobile.pool.telekom.hu. [2a00:1110:124:613f:5339:1797:d02:2288]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-480021e8c5asm2743096f8f.18.2026.08.06.22.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Aug 2026 22:44:52 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-core@lists.openembedded.org Cc: Mathieu Dubois-Briand , Quentin Schulz , Dmitry Baryshkov , Jose Quaresma , =?utf-8?b?Wm9sdMOhbiBCw7Zz?= =?utf-8?b?esO2cm3DqW55aQ==?= Subject: [PATCH v4 1/3] mesa: Upgrade to 26.2.0 Date: Fri, 7 Aug 2026 07:44:46 +0200 Message-ID: <20260807054448.1301957-1-zboszor@gmail.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 07 Aug 2026 05:45:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/242981 Release notes: https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html Removed upstream patches: * 0001-gallivm-Fix-armhf-build-against-LLVM-22.patch * 0001-src-intel-compiler-jay-fix-GCC-10-case-label-declara.patch Adapted patches: * 0001-freedreno-don-t-encode-build-path-into-binaries.patch * 0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch Signed-off-by: Zoltán Böszörményi --- ...on-t-encode-build-path-into-binaries.patch | 17 +++++--- ...livm-Fix-armhf-build-against-LLVM-22.patch | 27 ------------- ...er-jay-fix-GCC-10-case-label-declara.patch | 39 ------------------- ...er-jay-jay_ir.h-do-not-used-typed-en.patch | 8 ++-- meta/recipes-graphics/mesa/mesa.inc | 6 +-- 5 files changed, 17 insertions(+), 80 deletions(-) delete mode 100644 meta/recipes-graphics/mesa/files/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch delete mode 100644 meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-fix-GCC-10-case-label-declara.patch diff --git a/meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch b/meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch index 9aa598b2cf..a5e6570af8 100644 --- a/meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch +++ b/meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch @@ -1,4 +1,4 @@ -From 266f7047df67d500223b66f7eb9d8779be4f4ad1 Mon Sep 17 00:00:00 2001 +From 1ae1feb55885c8ec26ed2ef148fa75c6240d9804 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Wed, 10 Dec 2025 02:27:16 +0200 Subject: [PATCH] freedreno: don't encode build path into binaries @@ -25,7 +25,7 @@ Signed-off-by: Quentin Schulz 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/freedreno/meson.build b/src/freedreno/meson.build -index e8f01b8..8144a75 100644 +index e8f01b880bc..8144a75bd1c 100644 --- a/src/freedreno/meson.build +++ b/src/freedreno/meson.build @@ -4,9 +4,10 @@ @@ -42,13 +42,18 @@ index e8f01b8..8144a75 100644 dep_libarchive = dependency('libarchive', allow_fallback: true, required: false, disabler : true) dep_libxml2 = dependency('libxml-2.0', allow_fallback: true, required: false) diff --git a/src/freedreno/registers/meson.build b/src/freedreno/registers/meson.build -index f4be681..cd0caaf 100644 +index 9318ce48fe5..8d2b305d202 100644 --- a/src/freedreno/registers/meson.build +++ b/src/freedreno/registers/meson.build -@@ -43,4 +43,6 @@ if install_fd_decode_tools - endforeach - endif +@@ -16,6 +16,8 @@ freedreno_copyright = files(copyright_file) + + freedreno_xml_header_files = [] +devenv.set('RNN_PATH', meson.current_source_dir()) + subdir('adreno') + + foreach f : xml_adreno_files +-- +2.55.0 + diff --git a/meta/recipes-graphics/mesa/files/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch b/meta/recipes-graphics/mesa/files/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch deleted file mode 100644 index 32fac20d94..0000000000 --- a/meta/recipes-graphics/mesa/files/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 8db6e909c3a540d31a73b79a0792e927cc2c6e83 Mon Sep 17 00:00:00 2001 -From: Alessandro Astone -Date: Sun, 1 Mar 2026 18:14:09 +0100 -Subject: [PATCH] gallivm: Fix armhf build against LLVM 22 - -StringMapIterator became StringMapIterBase; -Use `auto` to handle either case. - -Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40161] -Signed-off-by: Jose Quaresma ---- - src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -index ce8ca02..86779f0 100644 ---- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -@@ -331,7 +331,7 @@ lp_build_fill_mattrs(std::vector &MAttrs) - llvm::sys::getHostCPUFeatures(features); - #endif - -- for (llvm::StringMapIterator f = features.begin(); -+ for (auto f = features.begin(); - f != features.end(); - ++f) { - MAttrs.push_back(((*f).second ? "+" : "-") + (*f).first().str()); diff --git a/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-fix-GCC-10-case-label-declara.patch b/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-fix-GCC-10-case-label-declara.patch deleted file mode 100644 index 8fb73d978f..0000000000 --- a/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-fix-GCC-10-case-label-declara.patch +++ /dev/null @@ -1,39 +0,0 @@ -From e41dee25f266d434e39af66e216a945f0085533b Mon Sep 17 00:00:00 2001 -From: Wang Mingyu -Date: Tue, 16 Jun 2026 09:12:34 +0000 -Subject: [PATCH] src/intel/compiler/jay: fix GCC 10 case label declaration - error - -GCC 10 (and earlier) does not allow a variable declaration immediately -after a case label, because a label must be followed by a statement. - - error: a label can only be part of a statement and a declaration is not a statement - -Wrap the case block for JAY_OPCODE_DESWIZZLE_ODD in braces to make the -declaration a valid statement inside the block. - -Upstream-Status: Inappropriate [yocto host distro requirements] - -Signed-off-by: Wang Mingyu ---- - src/intel/compiler/jay/jay_to_binary.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/src/intel/compiler/jay/jay_to_binary.c b/src/intel/compiler/jay/jay_to_binary.c -index 62b9576..a0a9498 100644 ---- a/src/intel/compiler/jay/jay_to_binary.c -+++ b/src/intel/compiler/jay/jay_to_binary.c -@@ -362,11 +362,12 @@ emit(struct brw_codegen *p, - brw_BFN(p, dst, SRC(0), SRC(1), SRC(2), brw_imm_ud(jay_bfn_ctrl(I))); - break; - -- case JAY_OPCODE_DESWIZZLE_ODD: -+ case JAY_OPCODE_DESWIZZLE_ODD: { - bool hi = simd_offs ? true : jay_deswizzle_odd_src2_hi(I); - brw_MOV(p, dst, - byte_offset(to_brw_reg(f, I, simd_offs, 0, false), hi ? 64 : 0)); - break; -+ } - - case JAY_OPCODE_DESWIZZLE_EVEN: - brw_set_default_exec_size(p, BRW_EXECUTE_16); diff --git a/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch b/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch index 2513b0324b..72b6d10b0f 100644 --- a/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch +++ b/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch @@ -16,7 +16,7 @@ diff --git a/src/intel/compiler/jay/jay_ir.h b/src/intel/compiler/jay/jay_ir.h index 8307044..abf175a 100644 --- a/src/intel/compiler/jay/jay_ir.h +++ b/src/intel/compiler/jay/jay_ir.h -@@ -579,7 +579,7 @@ jay_type_is_any_float(enum jay_type t) +@@ -518,7 +518,7 @@ jay_type_is_any_float(enum jay_type t) return jay_base_type(t) == JAY_TYPE_F || jay_base_type(t) == JAY_TYPE_BF; } @@ -25,12 +25,12 @@ index 8307044..abf175a 100644 /** No predication. */ JAY_NOT_PREDICATED = 0, -@@ -634,7 +634,7 @@ typedef struct jay_inst { +@@ -592,7 +592,7 @@ typedef struct jay_inst { bool decrement_dep:1; - unsigned padding :12; + uint8_t padding :1; - enum jay_predication predication; + uint8_t predication; - enum jay_conditional_mod conditional_mod; + gen_condition conditional_mod; jay_def cond_flag; /**< conditional flag */ diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index cbf67e50ce..01981de968 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -17,14 +17,12 @@ PE = "2" SRC_URI = "https://archive.mesa3d.org/mesa-${PV}.tar.xz \ file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ file://0001-freedreno-don-t-encode-build-path-into-binaries.patch \ - file://0001-gallivm-Fix-armhf-build-against-LLVM-22.patch \ file://0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch \ - file://0001-src-intel-compiler-jay-fix-GCC-10-case-label-declara.patch \ file://0001-src-util-u_math.c-do-not-use-arm-fpu-instructions-if.patch \ " -SRC_URI[sha256sum] = "5296b88a0f1e012e2cb9ada150a2bbadf728ca81e5a4fb2ab43c83a4d2158606" -PV = "26.1.6" +SRC_URI[sha256sum] = "efd4bb08cdb7c365a812cd4e6c9202ab55b2f22cdcd13c7d6c4f9647b799a4ef" +PV = "26.2.0" UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P\d+(\.\d+)+)" From patchwork Fri Aug 7 05:44:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QsO2c3rDtnJtw6lueWkgWm9sdMOhbg==?= X-Patchwork-Id: 94720 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 554BFC5AC7A for ; Fri, 7 Aug 2026 05:45:02 +0000 (UTC) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36764.1786081495544183023 for ; Thu, 06 Aug 2026 22:44:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=kj/obF03; spf=pass (domain: gmail.com, ip: 209.85.221.51, mailfrom: zboszor@gmail.com) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-47fecbbafdaso894240f8f.0 for ; Thu, 06 Aug 2026 22:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786081494; x=1786686294; darn=lists.openembedded.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=UamD8LC9Ob41ervZlIjlJNXWuPpzE3H3vVphI7AEY7c=; b=kj/obF03neRFgBMeTrwOu1lOpRwjJvkk+8KqryCMXfQJMVD4AWfPWiv7SL0NFfWl+1 aI/mWG9iPHcatHjb9XqFqxAdmvnQY7Obw+vhyyNgki9xTtEiTB5Rkr2CBp9Nf6WrP8Tt PHnm98lBGqpBxIPJHR9MlHhndgtbTaaouUy8WNkbDuTgX7zx3Mtu8PQK1CL7SPWlg0Hc v+XA5PL1w4LjAzPHH5T9VTcjHhF7YVps9gzG2tI+O+BGbUqhXSxZBLG3DencWNFXHUmh qUzHjtlbhdMcyzOP8pxrvfqejL+X/jJ2QRgtDwDWLokop5BthdfWskLnXjAnQjBQZiOj MH1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786081494; x=1786686294; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=UamD8LC9Ob41ervZlIjlJNXWuPpzE3H3vVphI7AEY7c=; b=BJuvsHSCFA9/TDoTai7NXxdonjfBCIw6MRWNxihVX1b/ir1dWUQvQ4thLmngIFL8hA usyZHwlZqUkPa1BKj6Z1f5RS7x58/fTQ2n1MzGpneJFtC20qwCSikwPeR1GLyFImpWDA E13+UckmSwOI2OFdt1BenJMAYyQKf4+jRTVHivOUc3Xsj35WznQRMjBTJzVNKg7A8gPS fVzwb8/GGiWKfbfANsct7U2RwofW05PIdIzQ6BVsFUycC2sHTSMjaljtCwAju0ApOwyO YGPVsIF0fC6h9rsNBoStCRfVoWbKedFeUXduyDLOPQx3tDAZ7vORNIxo55L3JOhiP8cB YU1A== X-Gm-Message-State: AOJu0YwHyPxPfjjSvPu9YW6wJ6FtMbva8FDPOh51cm5Zdlpv/EtD7rLT QZ8QKakJ6vxhMEYZ1yOLBCne781S1HrMmNcbfeRyHseiwgQIRnjySdUmlHQUiA== X-Gm-Gg: AR+sD12wXAzyoLKZFapoBerR7ZeUeOzBFn4OsNYfYFyDNf2IR7hCVd403vjHJLrGqS2 5BUKqm5QdmFEK4Q23QmOndvTFdVASmOf89k4o6J/cnM3T4McbubTQrrM0oFWeDMl+P+qfBZkZrP dbMrPJZOg23draQ/bRXSuuviMzUnbvfObw7hZr4C8qaFQWjSImO9X106vpB8VD1uIhAt22BDHxO GZ6J6cPS2qgPK8g5hfPJF/IVsRtlGJJKkltEMF4AMPbRMuVZ9YUx8gbC2XkIcsHH7acHXhjFG8A Hr9LyKAMI+95WqcEFeLOC4XOXdG8a6m2+gH7tDgDW9Z2ywKjYnLA7uXNFKMt1ES33ithYus7OgN 1rGFZRUQTPjeJxSezBV3pO0STF+Fr3Cdtb1RRhNAFThF6oOzH20uXrvs/RK2UoV2IctSdXlRGRO oEuhqdtCZ5qZnu11nscgvmD8wNM7HP/yR8rSIElYBd2IS2846NNcy8qK+ZsGEn6QdVXpjoxpw6c a7dflWTvxgrzb3MFxnJlyMdZTtj+j8qC4r4cwmRc3wTyZBQppqX1ReSaQDbuprjEXuDkfwa2rQH IxFqQS33T3RJ6nn/dJdGMKYdbA== X-Received: by 2002:a05:6000:186a:b0:47f:97ee:f1d4 with SMTP id ffacd0b85a97d-47fec512785mr30905791f8f.9.1786081493795; Thu, 06 Aug 2026 22:44:53 -0700 (PDT) Received: from 2A0011100124613F533917970D022288.mobile.pool.telekom.hu (2A0011100124613F533917970D022288.mobile.pool.telekom.hu. [2a00:1110:124:613f:5339:1797:d02:2288]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-480021e8c5asm2743096f8f.18.2026.08.06.22.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Aug 2026 22:44:53 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-core@lists.openembedded.org Cc: Mathieu Dubois-Briand , Quentin Schulz , Dmitry Baryshkov , Jose Quaresma , =?utf-8?b?Wm9sdMOhbiBCw7Zz?= =?utf-8?b?esO2cm3DqW55aQ==?= Subject: [PATCH v4 2/3] mesa-libclc: New recipe for forking libclc for Rusticl purposes in Mesa Date: Fri, 7 Aug 2026 07:44:47 +0200 Message-ID: <20260807054448.1301957-2-zboszor@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260807054448.1301957-1-zboszor@gmail.com> References: <20260807054448.1301957-1-zboszor@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 07 Aug 2026 05:45:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/242982 See the reasoning and discussion at https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/43020 which was merged and backported to 26.2.0. TL;DR: LLVM constantly introduces breaking changes that cause regressions for running OpenCL CTS with Rusticl and finally Karol Herbst had enough. This fork is from the LLVM 22 version of libclc and contains the necessary fixes to make Rusticl pass OpenCL CTS. Signed-off-by: Zoltán Böszörményi --- meta/conf/distro/include/maintainers.inc | 1 + .../mesa/mesa-libclc_22.1.8.3.bb | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 meta/recipes-graphics/mesa/mesa-libclc_22.1.8.3.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index c5b701c244..feccf29ce4 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -524,6 +524,7 @@ RECIPE_MAINTAINER:pn-menu-cache = "Ross Burton " RECIPE_MAINTAINER:pn-mesa = "Unassigned " RECIPE_MAINTAINER:pn-mesa-demos = "Unassigned " RECIPE_MAINTAINER:pn-mesa-gl = "Unassigned " +RECIPE_MAINTAINER:pn-mesa-libclc = "Zoltán Böszörményi " RECIPE_MAINTAINER:pn-mesa-tools-native = "Unassigned " RECIPE_MAINTAINER:pn-meson = "Trevor Gamblin " RECIPE_MAINTAINER:pn-meta-environment-${MACHINE} = "Richard Purdie " diff --git a/meta/recipes-graphics/mesa/mesa-libclc_22.1.8.3.bb b/meta/recipes-graphics/mesa/mesa-libclc_22.1.8.3.bb new file mode 100644 index 0000000000..c93b5b9d9d --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-libclc_22.1.8.3.bb @@ -0,0 +1,26 @@ +SUMMARY = "Mesa fork of libclc: Implementation of the library requirements of the OpenCL C programming language." +HOMEPAGE = "https://gitlab.freedesktop.org/karolherbst/mesa-libclc/" +SECTION = "devel" +LICENSE = "Apache-2.0-with-LLVM-exception" +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=7cc795f6cbb2d801d84336b83c8017db" + +SRC_URI = "git://gitlab.freedesktop.org/karolherbst/mesa-libclc.git;protocol=https;branch=llvm_22" + +SRCREV = "87f66007242ff10e9e84bf32be84f9057f6abc75" + +inherit cmake pkgconfig + +# Depend explicitly on clang-native instead of using TOOLCHAIN as the build +# objects from this recipe are build explicitly using clang for GPU targets. +# We could INHIBIT_DEFAULT_DEPS to avoid any other toolchain but then we need +# to wrestle CMake to configure without a toolchain. +DEPENDS += "clang-native spirv-llvm-translator-native" + +# Semicolon-separated list of targets to build +LIBCLC_TARGETS ?= "all" + +EXTRA_OECMAKE += "-DLIBCLC_TARGETS_TO_BUILD='${LIBCLC_TARGETS}'" + +FILES:${PN} += "${datadir}/mesa-clc" + +BBCLASSEXTEND = "native nativesdk" From patchwork Fri Aug 7 05:44:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QsO2c3rDtnJtw6lueWkgWm9sdMOhbg==?= X-Patchwork-Id: 94722 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D2ABC5AC81 for ; Fri, 7 Aug 2026 05:45:02 +0000 (UTC) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.36423.1786081496763246435 for ; Thu, 06 Aug 2026 22:44:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Zq/om85e; spf=pass (domain: gmail.com, ip: 209.85.221.49, mailfrom: zboszor@gmail.com) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-47c2b362ee2so2307639f8f.1 for ; Thu, 06 Aug 2026 22:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786081495; x=1786686295; darn=lists.openembedded.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=dOfXvbvNtnzYf4JrusFo0tCCaYZP9e8gi9tSd/QUjP0=; b=Zq/om85en7vEFXWC+TJzZpL/mWIMJyWLhytd7F/RIJ27syDf5i7yk/tZw8fTFXIanl pLH7Z/d/EYWMlVuTQtMGtkTw1QmQhN8W7OHpV/cFlZNhVbB4LeeCehEdEeDRIEyLRB2J espqWnTOOC69FKBkaQNg14O0qD8ZCSzgbZLJdLrh5uYYJKdF0DR4dSRjDFYEvI0qWi13 bk8Gg5xPBQO6KwOWkLt6+HrIGDCHq8PregBwwXyS1zRkPOOEr1bKdj5WGHuKR7CYzcCx s8E1L7bJ/pgnyU/POBZyBThNNtId6ak+eH+vL2wYTxdWYW37gJDiaVidMckz7ew9Xcdz iWLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786081495; x=1786686295; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=dOfXvbvNtnzYf4JrusFo0tCCaYZP9e8gi9tSd/QUjP0=; b=h6PLCa7HfFR5FB9Q/Lltn+HfKZVAcImetkkXUtgrTAcO4t+utuBfp3Ll/kXfvXrSNn 6Y2UBsSWBnrkR//lh7fSbqVzv/Sh69HMfXu05WCRK7aLq88Cn3E1ZL0DYx9T4JaB/hQ5 b8+NLwWdXhXIYODw+SY3F94vwNgI3CSZ34G+XijQk5qDmVgGN3O1Wu9aePK8iVjjVpBp QhL56K4blxr+qL6/HBtfZCSVQBQdAgky8pBys+BLysRYWOCNlWKnuBu2KVRnPLDBVPbr FdkPEWVmecw3WRg9BTLOPljg74NN9cwfmsdYe/u0Fc+7p2PEQFw2ZBZR0cIzykpERkNz WN4w== X-Gm-Message-State: AOJu0YyYvg0fap92MvImU4r8XT90ACcGZ0clNCOOh5XO98e7kW5eCbE/ KV4pxuUTZidyiZ5Gvvkj/TnyTHU2UU0S2ITdqgZVf0xmp4H+yKNlAL8EIz0/Mw== X-Gm-Gg: AR+sD1326sL71atNPH7IvhvxkFdRMbyV3qqVIBK6E1o25A2NMtz4O/jQ2oQl1TFVwXW i4RZESBOKLk9fHrW5k622QD0DcL7YEwfVPBj3jO438wfAWovAqi+9taZ10gKsyFZJbnMo3+QsPc iD7Im5AHxXsOctueVDPKjnm5J/ZBsZftJ9C0KSYR9fyLfUfeCBff4am0kMw7g7X9uC8nPyfsJtL 2b8mM4NACMYcFp1VO5qtxoXcsMnKKYd6DlZOWVIlpu5rmAZ2OYosdXjZtjaDVS1AwZH8q8ROEq1 bzM7ux1b990vcIaeanOr1wHknDG9jNKXCNNTWP37FKfSa0+FaB6YZHsSMB1g2Zu/gTD4XrK00lf T8ldtiIIrnrN/nfLsZqrE/iVqV8CU5r5nlXf332NbuuYIwjEymPRtqan5o13tMGDcVx86Dd3VH0 v9DDtlShyQZczonQ17xSy+ahzf86IMsdGruGor73iGuF5ry31nL+E/cbato/qDzDV3oMg/KrtGr nGHX2MZ93DveA0VMN04uMy+5VmLSe9cZJ8tdedmZ5Tt+KFpwb3bUKhBNzk5WAzF2/1gmjhedQGX we8oGasC0Tjx+FM14eaVCsz6hQ== X-Received: by 2002:a5d:64e9:0:b0:47f:7964:9887 with SMTP id ffacd0b85a97d-47fec639e6cmr31537732f8f.25.1786081494936; Thu, 06 Aug 2026 22:44:54 -0700 (PDT) Received: from 2A0011100124613F533917970D022288.mobile.pool.telekom.hu (2A0011100124613F533917970D022288.mobile.pool.telekom.hu. [2a00:1110:124:613f:5339:1797:d02:2288]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-480021e8c5asm2743096f8f.18.2026.08.06.22.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Aug 2026 22:44:54 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-core@lists.openembedded.org Cc: Mathieu Dubois-Briand , Quentin Schulz , Dmitry Baryshkov , Jose Quaresma , =?utf-8?b?Wm9sdMOhbiBCw7Zz?= =?utf-8?b?esO2cm3DqW55aQ==?= Subject: [PATCH v4 3/3] mesa, mesa-tools-native: Use mesa-libclc Date: Fri, 7 Aug 2026 07:44:48 +0200 Message-ID: <20260807054448.1301957-3-zboszor@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260807054448.1301957-1-zboszor@gmail.com> References: <20260807054448.1301957-1-zboszor@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 07 Aug 2026 05:45:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/242983 According to the release notes at https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html | One important note for packagers is that there is now a Mesa community | maintained libclc fork that is verified to pass the OpenCL CTS with | Mesa/Rusticl, and will fix bugs after an upstream libclc major release | branch goes EoL. The Mesa build system will pick it up when available, | and fall back to upstream libclc if not. This libclc fork is not | verified for any other usages or users of libclc outside of Mesa. Rusticl would complain if about not this libclc fork is used due to OpenCL CTS compliance. Signed-off-by: Zoltán Böszörményi --- meta/recipes-graphics/mesa/mesa-tools-native.bb | 2 +- meta/recipes-graphics/mesa/mesa.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/recipes-graphics/mesa/mesa-tools-native.bb b/meta/recipes-graphics/mesa/mesa-tools-native.bb index 20207450bf..c495d2e8a8 100644 --- a/meta/recipes-graphics/mesa/mesa-tools-native.bb +++ b/meta/recipes-graphics/mesa/mesa-tools-native.bb @@ -11,7 +11,7 @@ PACKAGECONFIG += "gallium-llvm" # to PACKAGECONFIG like in mesa.inc PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)}" -DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native" +DEPENDS += "mesa-libclc-native spirv-tools-native spirv-llvm-translator-native" EXTRA_OEMESON += " \ -Dmesa-clc=enabled -Dinstall-mesa-clc=true -Dmesa-clc-bundle-headers=enabled \ diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 01981de968..a139ebb176 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -108,7 +108,7 @@ PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false" # "opencl" also requires libclc and gallium-llvm to be present in PACKAGECONFIG! # Be sure to enable them both for the target and for the native build. -PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false, bindgen-cli-native clang libclc spirv-tools spirv-llvm-translator" +PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false, bindgen-cli-native clang mesa-libclc spirv-tools spirv-llvm-translator" X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr xorgproto libxshmfence" # "x11" requires "opengl" @@ -252,7 +252,7 @@ RPROVIDES:libopencl-mesa += "virtual-opencl-icd" RPROVIDES:libgles2-mesa += "libgles3-mesa" RPROVIDES:libgles2-mesa-dev += "libgles3-mesa-dev" -RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc', '', d)}" +RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'mesa-libclc', '', d)}" PACKAGES =+ "libegl-mesa libegl-mesa-dev \ libgallium \