From patchwork Mon Sep 9 03:43:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 67793 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 22DCD27BBE9; Mon, 9 Sep 2024 04:44:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8701E27BBE2 for ; Mon, 9 Sep 2024 04:44:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snVJo-0005bP-RM; Sun, 08 Sep 2024 23:44:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snVJn-0005bH-Bi for guix-patches@gnu.org; Sun, 08 Sep 2024 23:43:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1snVJn-00026x-2e for guix-patches@gnu.org; Sun, 08 Sep 2024 23:43:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=otJHJQafXRnLcZHi8SsC9pxSfdRGA66z7AS6Se2ARAU=; b=a9A3IsKxPVruFae2Qzzz68gbLfKT98q/ZVjmpN8u4ydE9Hl7u69MXA69ciyEVNY5hOhLhxGl8qYA3iIEhuovEm2KZXn4+W6+iepU96IRXwEIcyq5ZmvoD03FRlhCXWxy2/9U/cZABLUQu3rcmRVcfAkaJzuuSV5dBfUu0ldGgxGVz/etNo45ZPZMc8srDYUJAuyl2D1IdsXQOqhnWgBPghkrlPhMMjE3RvpkSejSpJakUl/j3WwJOD45JjlscXebDN+ITswfA/1gelc0tkDtw/epuxItHzUstI3F+X4uOqAqZy2JhQRY3x6QME+frxudky1tsjdDwsXktBtMxeAydQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snVJp-00081a-LL for guix-patches@gnu.org; Sun, 08 Sep 2024 23:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73071] [PATCH mesa-updates 0/8] Various updates for mesa to 24.2.2 Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Sep 2024 03:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73071 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73071@debbugs.gnu.org Cc: aurtzy@gmail.com, efraim@flashner.co.il X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172585343230818 (code B ref -1); Mon, 09 Sep 2024 03:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Sep 2024 03:43:52 +0000 Received: from localhost ([127.0.0.1]:60413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snVJg-00080z-1U for submit@debbugs.gnu.org; Sun, 08 Sep 2024 23:43:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:35970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snVJd-00080r-EP for submit@debbugs.gnu.org; Sun, 08 Sep 2024 23:43:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snVJZ-0005aZ-OT for guix-patches@gnu.org; Sun, 08 Sep 2024 23:43:46 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snVJX-00025G-6s for guix-patches@gnu.org; Sun, 08 Sep 2024 23:43:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725853413; x=1726112613; bh=otJHJQafXRnLcZHi8SsC9pxSfdRGA66z7AS6Se2ARAU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=n79clEc1NsbUQSt4FhTTu6x4p5VnbsmApul2ywlPeeo31lbt9qCYdzRi4ZBtoo8R0 FVpL1DIZwdCxgbx/qhiZsBFXwRKxGJSSTg0mqjnqDyT3a5kMGCLqZQ8ec4dg2ThYCQ 183dOgD2rCGDYvmCOyuaBx4YiqJZYXpX1RF8euBaptSZIrBXJD86yZ+EmXMNRZORgj jnWx6wOFtqUFT/D2jptFU0rqkmfisUzM2i9Yw9AjXfc7oW1CjpA0CdI+T1ytqW6Heb qwICK3fF349MwzkM5JzZL3QmC9Dnmg6g+h8MiUerOggPVK5Ffp1CgrTLtuJUsOHwEx hTQNwXEyeVypg== Date: Mon, 09 Sep 2024 03:43:27 +0000 Message-ID: <87zfoha3vs.fsf@protonmail.com> In-Reply-To: References: Feedback-ID: 7805494:user:proton X-Pm-Message-ID: 4257b7055371d48b77e763a3d32d85679566e3d8 MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.131; envelope-from=john.kehayias@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Just a note that on IRC it was pointed out that we lost the i915 driver in mesa. I adjusted the configure flags to restore some changes that were lost, simplifying the configure-flags a little. That patch is attached and is live on mesa-updates (along with some other changes, but not related directly to this series). On Fri, Sep 06, 2024 at 03:00 PM, John Kehayias wrote: > Hello Guix, > > This is a series of patches to update mesa to the latest, 24.2.2, some > dependencies, and fix a vulkan issue . > Along the way I updated llvm-for-mesa and mesa inputs, which unifies the > changes made to build on aarch64-linux, for instance. Hopefully this doesn't > introduce regressions. To that end, I've pushed this series now to the > mesa-updates branch to see how building on Cuirass goes. (A previous version > was there already, but I have updated/rebased and now finally sending this.) > > Some notes: > > 1. The closure size of mesa has increased, something like from 374 MiB to 542 > MiB, mostly due to itself (not sure why) and then also from llvm. This is > from going from v15 to v18 and as you'll see in a patch I had to enable > building all targets. Possibly this can be alleviated by building a smaller > clang for mesa? > > 2. Previous discussion was about getting NVK (which requires rust) built in > the last mesa update. I'm not sure the current status but will check with > those that were working on it before . I > believe it is no longer experimental, so we should try to include it. > > Hopefully the patch changes and brief comments explain all, but please do > provide any feedback, changes, fixes, etc. The branch has just been rebased > on master but we can rebase as needed or if there are some critical errors on > these patches I missed. > > Thanks! > John > > PS: I guess python-team will get this series as I added two comments (no code > changes) to python packages now needed for mesa. One already has a huge > number of dependents anyway, but good to note I suppose. > > John Kehayias (6): > gnu: libdrm: Update to 2.4.123. > gnu: wayland-protocols: Update to 1.37. > gnu: Remove wayland-protocols-next. > gnu: llvm-for-mesa: Update to llvm-18. > gnu: llvm-for-mesa: Build all targets. > gnu: mesa: Update to 24.2.2. > > nathan (2): > gnu: vulkan-headers: Hard-code libvulkan.so file name. > gnu: volk: Hard-code path of vulkan-loader for dynamic loading > > gnu/packages/freedesktop.scm | 17 ++----------- > gnu/packages/gl.scm | 49 ++++++++++++++---------------------- > gnu/packages/kde-plasma.scm | 2 +- > gnu/packages/llvm.scm | 29 ++++++++++----------- > gnu/packages/python-xyz.scm | 2 ++ > gnu/packages/vulkan.scm | 41 ++++++++++++++++++++++++++---- > gnu/packages/xdisorg.scm | 4 +-- > 7 files changed, 75 insertions(+), 69 deletions(-) > > > base-commit: d4fbd1ab341de85c1e5c77e0f7adc5aae056be15 From 6845eb88b801692f1889171487736fa6ea6264aa Mon Sep 17 00:00:00 2001 Message-ID: <6845eb88b801692f1889171487736fa6ea6264aa.1725848392.git.john.kehayias@protonmail.com> From: John Kehayias Date: Sun, 8 Sep 2024 20:13:33 -0400 Subject: [PATCH 1/2] gnu: mesa: Update configure flags. Previously, in 1ed0283fcc12b4b48f5b61be026a7b832d9781dc, mesa's configuration options were altered to use "auto" as needed, while it looks like this was inadvertently changed in 9b2a3e023f7090d19c98e7582220340df3962555. This meant i915 dropped from x86/x86_64. This commit restores the "auto" behavior where it matched our previous driver list (or restored missing drivers). See mesa's meson.build for all options. * gnu/packages/gl.scm (mesa)[arguments]: For gallium-drivers, use "softpipe,llvmpipe" instead of the deprecated "swrast" option. Use "auto" in gallium-drivers and vulkan-drivers where it provides the same driver list (or restores ones dropped from x86/x86_64). Comment on differences from "auto" where we don't use it. Change-Id: I920701f71d19578f4913fda7372273955f0a9847 --- gnu/packages/gl.scm | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index ab18a3e5a7..c417f11571 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -360,16 +360,18 @@ (define-public mesa #~(list #$@(cond ((target-aarch64?) + ;; This includes more drivers than "auto": asahi, r300, r600 '("-Dgallium-drivers=asahi,etnaviv,freedreno,kmsro,lima,\ -nouveau,panfrost,r300,r600,svga,swrast,tegra,v3d,vc4,virgl,zink")) +nouveau,panfrost,r300,r600,svga,softpipe,llvmpipe,tegra,v3d,vc4,virgl,zink")) ((target-arm32?) + ;; This includes more drivers than "auto": r300, r600 '("-Dgallium-drivers=etnaviv,freedreno,kmsro,lima,nouveau,\ -panfrost,r300,r600,svga,swrast,tegra,v3d,vc4,virgl,zink")) +panfrost,r300,r600,svga,softpipe,llvmpipe,tegra,v3d,vc4,virgl,zink")) ((or (target-ppc64le?) (target-ppc32?) (target-riscv64?)) - '("-Dgallium-drivers=nouveau,r300,r600,radeonsi,svga,swrast,virgl,zink")) + ;; This include more drivers than "auto": svga + '("-Dgallium-drivers=nouveau,r300,r600,radeonsi,svga,softpipe,llvmpipe,virgl,zink")) (else - '("-Dgallium-drivers=crocus,iris,nouveau,r300,r600,radeonsi,\ -svga,swrast,virgl,zink"))) + '("-Dgallium-drivers=auto"))) ;; Enable various optional features. TODO: opencl requires libclc, ;; omx requires libomxil-bellagio "-Dplatforms=x11,wayland" @@ -384,16 +386,15 @@ (define-public mesa "-Dgbm=enabled" "-Dshared-glapi=enabled" - ;; Explicitly enable Vulkan on some architectures. #$@(cond ((or (target-x86-32?) (target-x86-64?)) + ;; This doesn't include nouveau (which is in "auto") as it needs + ;; rust. + ;; TODO: Enable nouveau/NVK. '("-Dvulkan-drivers=intel,intel_hasvk,amd,swrast")) - ((or (target-ppc64le?) (target-ppc32?)) - '("-Dvulkan-drivers=amd,swrast")) ((target-aarch64?) + ;; This differs from "auto" which only includes swrast and intel '("-Dvulkan-drivers=freedreno,amd,broadcom,swrast")) - ((target-riscv64?) - '("-Dvulkan-drivers=amd,swrast")) (else '("-Dvulkan-drivers=auto"))) base-commit: d4fbd1ab341de85c1e5c77e0f7adc5aae056be15 prerequisite-patch-id: 85f8b14ffb3ff7b86cafbb92e4696be068f4e359 prerequisite-patch-id: 2590cf63b0ab9f283a69b32e365f2ea5dc2da535 prerequisite-patch-id: 2492ce516359cac8bfa032cc76b61a4c92fbeef2 prerequisite-patch-id: d8e75123e17a6f55ca7a7cd5dd837d25ec22c0fa prerequisite-patch-id: 167752f067cd365b2bd36911cd9c084a5872a5ee prerequisite-patch-id: 64f83d89967f82eb723f45a5ef60504337f967f1 prerequisite-patch-id: c26265bd60deed274db4274b2934c1ea89b6cc8f prerequisite-patch-id: bc2a5912f9eba66f1a234fecdc1914a444be9041 -- 2.45.2