From patchwork Thu Mar 26 11:05:49 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 84434 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 ADB8F10A1E7C for ; Thu, 26 Mar 2026 11:06:11 +0000 (UTC) Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [185.125.25.14]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.44855.1774523165759085403 for ; Thu, 26 Mar 2026 04:06:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@0leil.net header.s=20231125 header.b=mz9rMH/8; spf=pass (domain: 0leil.net, ip: 185.125.25.14, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (unknown [IPv6:2001:1600:4:17::246b]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4fhLYS0JHRz17ZJ; Thu, 26 Mar 2026 12:06:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0leil.net; s=20231125; t=1774523163; bh=UXIDVzAJyyiAL1x4RgjB6DfD0NWINiNQ4SzuBpAarSU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mz9rMH/8DLfjGCIFMxzqk2Mz4zzH+xgurN7q9Rmq7L01LztWHhHaKiwuY9E9efZSw TaKLG1W3DAcSLkw2nHTvmLS8qO7Ly+edlMDSTj9xSoIJ/9BVii7b71G1mSyj5tEf+o bFZjsdGNhVwe6trZh/bWetfuxFxhcRkAwgg/Gok7ZE5jq/wB1j6ahbdhoao/rwXEh4 a04j0EZfV5+QIlKhdgbnegR7gG5anIs8Re87AeMb5NR5eeaJnlxgLpXkpencYQ6PGK lIaaFCEGUbZeaT9jL9y8ffg6jToYcKVyvTE5sBLFSEU7rIwYfj7yLQSXix2wlDcyOs hWCCex25pfuxA== Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4fhLYR4Y9MzSpn; Thu, 26 Mar 2026 12:06:03 +0100 (CET) From: Quentin Schulz Date: Thu, 26 Mar 2026 12:05:49 +0100 Subject: [PATCH 1/3] mesa: fix missing dependency for libdrm for panfrost tools MIME-Version: 1.0 Message-Id: <20260326-mesa-libdrm-imagination-v1-1-fe018f03be6a@cherry.de> References: <20260326-mesa-libdrm-imagination-v1-0-fe018f03be6a@cherry.de> In-Reply-To: <20260326-mesa-libdrm-imagination-v1-0-fe018f03be6a@cherry.de> To: openembedded-core@lists.openembedded.org Cc: Quentin Schulz , Khem Raj , Changqing Li X-Mailer: b4 0.15-dev-47773 X-Infomaniak-Routing: alpha 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 ; Thu, 26 Mar 2026 11:06:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/233974 From: Quentin Schulz mesa-tools-native builds the panfrost tools but if wayland is not in DISTRO_FEATURES, libdrm dependency is missing and mesa-tools-native will fail with: ../sources/mesa-26.0.2/src/panfrost/lib/kmod/pan_kmod.c:7:10: fatal error: xf86drm.h: No such file or directory 7 | #include | ^~~~~~~~~~~ Note the mesa-26.0.2 in the path. It's simply because the tarball sources contain this name as root directory, it can be a bit misleading when looking at mesa-tools-native logs and seeing this error. Fixes: 937a0931dd07 ("add mesa-tools native-only recipe") Reported-by: Khem Raj Reported-by: Changqing Li Signed-off-by: Quentin Schulz --- meta/recipes-graphics/mesa/mesa.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index a95adfc960..e5ee4ad259 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -160,6 +160,7 @@ TOOLS .= "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)} # dependencies for tools. TOOLS_DEPS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ' ncurses libconfig libxml2 ', '', d)}" +TOOLS_DEPS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ' libdrm', '', d)}" PACKAGECONFIG[expat] = "-Dexpat=enabled, -Dexpat=disabled, expat" PACKAGECONFIG[tools] = "-Dtools=${@strip_comma('${TOOLS}')}, -Dtools='', ${TOOLS_DEPS}" From patchwork Thu Mar 26 11:05:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 84433 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 A0AF810A1E7A for ; Thu, 26 Mar 2026 11:06:11 +0000 (UTC) Received: from smtp-bc0e.mail.infomaniak.ch (smtp-bc0e.mail.infomaniak.ch [45.157.188.14]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.45539.1774523166193252616 for ; Thu, 26 Mar 2026 04:06:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@0leil.net header.s=20231125 header.b=bXzY8kee; spf=pass (domain: 0leil.net, ip: 45.157.188.14, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (unknown [IPv6:2001:1600:4:17::246b]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4fhLYS388MzMVN; Thu, 26 Mar 2026 12:06:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0leil.net; s=20231125; t=1774523164; bh=OZHGrhZdEHWrgNOZOgHATGaHTtWfGBziHT+Qm/h4piM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=bXzY8keelZS07m5NdWHwdLgdRfo2wdCdXSkcA5ntLfgIPDFf7KeBF4eW4GTpjqcj0 TYonWOEzwKgvBF92hl0t9e2oUMrEwgthDCG7YLuGqXEkqrm3uC1hQDYGfti0cztYLU muZY36GvPGoXelBlu//U+C9CJQBuuI+/C8atSn2IUuAEAgKxueA3JaAf0qrOot6a2B zXS/eioa6H9l6SzJRtahJVcvd64cd8bbuee52RVUAGqLAA8y0UimtFFbtnM4o+nXzu vg3pHpaaf9GFDG3lqF22YB24VLOTZsDK7XbFDlXbf9Dbhp3DIOGq1+hSaOykhCDCaZ uBzZzDKq4GUzw== Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4fhLYS0CGRzRr7; Thu, 26 Mar 2026 12:06:04 +0100 (CET) From: Quentin Schulz Date: Thu, 26 Mar 2026 12:05:50 +0100 Subject: [PATCH 2/3] mesa: fix building imagination Vulkan driver MIME-Version: 1.0 Message-Id: <20260326-mesa-libdrm-imagination-v1-2-fe018f03be6a@cherry.de> References: <20260326-mesa-libdrm-imagination-v1-0-fe018f03be6a@cherry.de> In-Reply-To: <20260326-mesa-libdrm-imagination-v1-0-fe018f03be6a@cherry.de> To: openembedded-core@lists.openembedded.org Cc: Quentin Schulz , Ernest Van Hoecke X-Mailer: b4 0.15-dev-47773 X-Infomaniak-Routing: alpha 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 ; Thu, 26 Mar 2026 11:06:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/233973 From: Quentin Schulz The imagination Vulkan driver requires a precomp-compiler from mesa-tools-native since we've decoupled libclc from target mesa in commit ac5e0160df78 ("mesa: depend on mesa-tools-native for less expensive libclc dependency"). This is achieved by building the imagination precomp-compiler tool in mesa-tools-native and making use of it via the libclc PACKAGECONFIG for the Vulkan driver such that mesa-tools-native dependency (and its imagination precomp-compiler) are brought in. Fixes: ac5e0160df78 ("mesa: depend on mesa-tools-native for less expensive libclc dependency") Reported-by: Ernest Van Hoecke Signed-off-by: Quentin Schulz --- meta/recipes-graphics/mesa/mesa-tools-native.bb | 2 +- meta/recipes-graphics/mesa/mesa.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-graphics/mesa/mesa-tools-native.bb b/meta/recipes-graphics/mesa/mesa-tools-native.bb index 50d2f5cbb0..0fff6ef1dd 100644 --- a/meta/recipes-graphics/mesa/mesa-tools-native.bb +++ b/meta/recipes-graphics/mesa/mesa-tools-native.bb @@ -3,7 +3,7 @@ inherit_defer native SUMMARY += " (tools only)" -PACKAGECONFIG = "tools asahi panfrost" +PACKAGECONFIG = "tools asahi imagination panfrost" # llvm required for libclc PACKAGECONFIG += "gallium-llvm" # Doesn't compile without wayland-scanner if PLATFORMS has wayland in, and, diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index e5ee4ad259..cc4937ae97 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -137,7 +137,7 @@ VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc gallium-l VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'virtio', ',gfxstream', '', d)}" -VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination', '', d)}" +VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'imagination libclc', ',imagination', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc gallium-llvm', ',intel', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel_hasvk', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'panfrost libclc', ',panfrost', '', d)}" From patchwork Thu Mar 26 11:05:51 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 84432 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 9A61910A1E78 for ; Thu, 26 Mar 2026 11:06:11 +0000 (UTC) Received: from smtp-8fae.mail.infomaniak.ch (smtp-8fae.mail.infomaniak.ch [83.166.143.174]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.45540.1774523166546946166 for ; Thu, 26 Mar 2026 04:06:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@0leil.net header.s=20231125 header.b=UKlhyr90; spf=pass (domain: 0leil.net, ip: 83.166.143.174, mailfrom: foss+yocto@0leil.net) Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4fhLYS5cpxzPRV; Thu, 26 Mar 2026 12:06:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0leil.net; s=20231125; t=1774523164; bh=q4kWXSsZ2cOPTPtGeCNbR40S0AeXAZ3lkBOJpEK8eyQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=UKlhyr90gx42FY4/mRr/+kdU8j1i9r6SzLrbRZ4q7Oq9B4McytPtGWLWBBB0u6oVC 7/r2ahNm7k64t/JNgrVJsnQGh54JR6oNkxm3t4OIK2u3EhRTPIFf9nJaUbRe9sH6q5 susM6wXl5W9VXMYdz2KBk/Jy1vKihGfzgAfy3zD+yZ+/CmFomMn76KYWrnl3V5/R39 aQMNeYvFgXMbzPpUrODkv67ERw3JJfyDxTNAVaxufc0SyghJxq7TkVJzTVca7382bJ uNZGg42LaT1hL6zipqawJOSsCHN/2+fpQvSJyFrL2rF64kEBtaTbSrCF+y3GoZixl8 zF1RNneeiFv2w== Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4fhLYS306nzTRw; Thu, 26 Mar 2026 12:06:04 +0100 (CET) From: Quentin Schulz Date: Thu, 26 Mar 2026 12:05:51 +0100 Subject: [PATCH 3/3] mesa: add missing libdrm dependency for vulkan drivers MIME-Version: 1.0 Message-Id: <20260326-mesa-libdrm-imagination-v1-3-fe018f03be6a@cherry.de> References: <20260326-mesa-libdrm-imagination-v1-0-fe018f03be6a@cherry.de> In-Reply-To: <20260326-mesa-libdrm-imagination-v1-0-fe018f03be6a@cherry.de> To: openembedded-core@lists.openembedded.org Cc: Quentin Schulz X-Mailer: b4 0.15-dev-47773 X-Infomaniak-Routing: alpha 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 ; Thu, 26 Mar 2026 11:06:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/233975 From: Quentin Schulz Mesa explicitly requires libdrm for any Vulkan driver, see https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.0.2/meson.build?ref_type=tags#L1774 https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.0.2/meson.build?ref_type=tags#L636 https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.0.2/meson.build?ref_type=tags#L300 but until now we haven't had the dependency when building only Vulkan drivers. It was brought in by the gallium PACKAGECONFIG, which is by default in mesa and mesa-gl recipes' PACKAGECONFIG but nothing forbids us from removing it if we only need Vulkan drivers for some reason. Signed-off-by: Quentin Schulz --- meta/recipes-graphics/mesa/mesa.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index cc4937ae97..f985e9a676 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -144,7 +144,7 @@ VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'panfrost libclc', ',pa VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${VULKAN_DRIVERS_SWRAST}', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'virtio', '${VULKAN_DRIVERS_VIRTIO}', '', d)}" -PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers" +PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers libdrm" PACKAGECONFIG[vulkan-beta] = "-Dvulkan-beta=true,-Dvulkan-beta=false" # mesa development and testing tools support, per driver