Skip to content

remove mesa-asahi-edge#303

Merged
tpwrules merged 1 commit into
nix-community:mainfrom
flokli:mainline-mesa
Aug 23, 2025
Merged

remove mesa-asahi-edge#303
tpwrules merged 1 commit into
nix-community:mainfrom
flokli:mainline-mesa

Conversation

@flokli
Copy link
Copy Markdown
Member

@flokli flokli commented May 26, 2025

Since mesa 25.1, support for asahi is enabled by default. This means,
the nixpkgs mesa is sufficient and we don't need any custom mesa, or
methods to replace it.

In addition to the now ineffective
hardware.asahi.useExperimentalGPUDriver option, this also removes the
hardware.asahi.experimentalGPUInstallMode option, which was already
deprecated before.

Fixes #338.

@tpwrules
Copy link
Copy Markdown
Collaborator

Are we ready to say goodbye to this? I think Fedora is continuing to keep the custom Mesa around for future development, but the upstream Mesa enablement allows compatibility in VMs etc.

I think it would be better to fix it.

@rowanG077
Copy link
Copy Markdown
Contributor

rowanG077 commented May 27, 2025

I agree with @tpwrules until fedora switches we shouldn't either. They clearly still think diverging from upstream is worth it.

@flokli
Copy link
Copy Markdown
Member Author

flokli commented May 27, 2025

Gentoo for example only plans to keep mesa around in their overlay until virglrenderer is fixed too.

I'm not entirely what/why Fedora is planning to do (maybe it needs to be orchestrated more carefully there?), but I'd assume in a few months from now things will just end up in mainline mesa, and their custom mesa package will disappear too.

I'm happy to keep this PR open for a while until the dust has settled.

@tpwrules
Copy link
Copy Markdown
Collaborator

This would immediately break stable which would be really unfortunate so let's not. The fix turns out to be simple, @wistfulbrick 's fix appears right.

On the other hand, the Asahi Linux distro guidelines do not call out Asahi's Mesa fork as needing to be packaged so perhaps we can drop this sooner than I thought.

@waltmck
Copy link
Copy Markdown
Contributor

waltmck commented Jun 2, 2025

According to Conan Kudo on Matrix, the next Fedora version will switch to upstream mesa (and Rawhide has already made the switch). However, this did break the emulation stack as mentioned above. It might be best to hold out as @flokli suggested until the dust settles.

@flokli flokli force-pushed the mainline-mesa branch 4 times, most recently from 12d5811 to ec1abe3 Compare June 26, 2025 21:12
@flokli
Copy link
Copy Markdown
Member Author

flokli commented Jun 26, 2025

I think the virglrenderer MR is at https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1527.

Comment thread docs/release-notes.md Outdated
@rowanG077
Copy link
Copy Markdown
Contributor

rowanG077 commented Aug 6, 2025

Now that Mesa 25.2 has been released with Asahi virtio support enabled, and Fedora Asahi is moving towards using upstream, I think it's time for this to be included.

@ghost ghost mentioned this pull request Aug 9, 2025
@waltmck
Copy link
Copy Markdown
Contributor

waltmck commented Aug 10, 2025

Mesa 25.2 has landed in nixpkgs-unstable, so I think that this can be merged alongside a flake inputs update.

@flokli
Copy link
Copy Markdown
Member Author

flokli commented Aug 10, 2025

Mesa 25.2 has landed in nixpkgs-unstable, so I think that this can be merged alongside a flake inputs update.

Is this included in the pin at #330?

@tpwrules
Copy link
Copy Markdown
Collaborator

I think it just got barely missed. We need to do a release both for stable and unstable first though. I am preparing those now.

@flokli
Copy link
Copy Markdown
Member Author

flokli commented Aug 14, 2025

Rebased, and inputs.nixpkgs now has mesa 25.2.0 in there.

@flokli
Copy link
Copy Markdown
Member Author

flokli commented Aug 14, 2025

I still need to test this.

@flokli flokli marked this pull request as draft August 14, 2025 10:24
@tpwrules
Copy link
Copy Markdown
Collaborator

Is this dependent upon the kernel upgrade? Would prefer to keep that as a separate PR.

@flokli
Copy link
Copy Markdown
Member Author

flokli commented Aug 14, 2025

Is this dependent upon the kernel upgrade? Would prefer to keep that as a separate PR.

No, the switch to the uapi that was also upstreamed happened a while ago the kernel is already up to date enough. I'm just stupid and pushed these commits too while rebasing, will update 😆

Edit: done

@rowanG077
Copy link
Copy Markdown
Contributor

This PR works for me.

Copy link
Copy Markdown

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch by patch, asahi gets closer to being upstreamed entirely.

Diff LGTM, I've been using an equivalent of this PR on my personal branch for months now.

@cyrinux
Copy link
Copy Markdown

cyrinux commented Aug 22, 2025

Hi, just to let you know that I tried this PR on my m2 air. And for me it looks broken. I spot it quickly just opening a youtube video. Its laggy.

@waltmck
Copy link
Copy Markdown
Contributor

waltmck commented Aug 22, 2025

Hi, just to let you know that I tried this PR on my m2 air. And for me it looks broken. I spot it quickly just opening a youtube video. Its laggy.

That is probably the known Hyprland OpenGL bug with Mesa 25.2, see here.

@cyrinux
Copy link
Copy Markdown

cyrinux commented Aug 22, 2025

Hi, just to let you know that I tried this PR on my m2 air. And for me it looks broken. I spot it quickly just opening a youtube video. Its laggy.

That is probably the known Hyprland OpenGL bug with Mesa 25.2, see here.

I'm using sway now, not hyperland anymore.

@flokli
Copy link
Copy Markdown
Member Author

flokli commented Aug 22, 2025

Hi, just to let you know that I tried this PR on my m2 air. And for me it looks broken. I spot it quickly just opening a youtube video. Its laggy.

That is probably the known Hyprland OpenGL bug with Mesa 25.2, see here.

I'm using sway now, not hyperland anymore.

And it's still an issue, or not an issue anymore?

@cyrinux
Copy link
Copy Markdown

cyrinux commented Aug 22, 2025

Hi, just to let you know that I tried this PR on my m2 air. And for me it looks broken. I spot it quickly just opening a youtube video. Its laggy.

That is probably the known Hyprland OpenGL bug with Mesa 25.2, see here.

I'm using sway now, not hyperland anymore.

And it's still an issue, or not an issue anymore?

I sadly dont know what is the root cause, mesa related for sure, but yes, its not usuable anymore for me it this get merged as this.
My previous reply was maybe not clear. I was an hyprland user, but I run sway since long time already now. I dont install sway just now.

@ToborWinner
Copy link
Copy Markdown

ToborWinner commented Aug 22, 2025

I use the Hyprland patches suggested by another user in #340 with mesa 25.2, but it still runs on llvmpipe for me too. I'm not sure why it doesn't work in my case or what I'm doing wrong.

These patches are the ones from a Hyprland PR that is supposed to fix this problem.

@cyrinux
Copy link
Copy Markdown

cyrinux commented Aug 22, 2025

Can it be we need both last kernel and mesa to get all thing working ? You said previously @flokli you test only on last kernel true ? Your other PR ?

@ToborWinner
Copy link
Copy Markdown

ToborWinner commented Aug 22, 2025

Can it be we need both last kernel and mesa to get all thing working ? You said previously @flokli you test only on last kernel true ? Your other PR ?

I tried using #326 to update kernel, but that didn't work either. To be clear I didn't use this PR, I just set useExperimentalGPUDriver = false, which should have the same effect.

@ghost
Copy link
Copy Markdown

ghost commented Aug 22, 2025

Okay just upgraded my nixpkgs (2025-08-19) in my nixos configuration on a branch with this patch applied and now I'm suddenly in llvmpipe even though I'm on 25.2 and on GNOME (setting hardware.graphics.enable explicitly doesn't have an effect)

relevant vulkaninfo output:

Device Properties and Extensions:
=================================
GPU0:
VkPhysicalDeviceProperties:
---------------------------
	apiVersion        = 1.4.318 (4211006)
	driverVersion     = 25.2.0 (104865792)
	vendorID          = 0x10005
	deviceID          = 0x0000
	deviceType        = PHYSICAL_DEVICE_TYPE_CPU
	deviceName        = llvmpipe (LLVM 19.1.7, 128 bits)
	pipelineCacheUUID = 32352e32-2e30-6161-6161-616161616161

I don't know if this is a kernel issue or an upstream (nixpkgs) mesa regression.

@flokli
Copy link
Copy Markdown
Member Author

flokli commented Aug 22, 2025

Can it be we need both last kernel and mesa to get all thing working ? You said previously @flokli you test only on last kernel true ? Your other PR ?

Can you check my wip branch, which has both this PR and the kernel bump applied? Just to check whether the new kernel is also needed.

@cyrinux
Copy link
Copy Markdown

cyrinux commented Aug 22, 2025

On my m2 when it

Can it be we need both last kernel and mesa to get all thing working ? You said previously @flokli you test only on last kernel true ? Your other PR ?

Can you check my wip branch, which has both this PR and the kernel bump applied? Just to check whether the new kernel is also needed.

I will try, with a friend we fork and merge your two branches somewhere. I try to build now, as unlucky boy I just got ratelimited by github 😄 Building now...

@ghost
Copy link
Copy Markdown

ghost commented Aug 22, 2025

I think I can say that it's something with newer versions of nixpkgs and related to the kernel.

diff --git a/flake.lock b/flake.lock
index bd565fa..d728fb1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -101,11 +101,11 @@
     },
     "nixpkgs": {
       "locked": {
-        "lastModified": 1755615617,
-        "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
+        "lastModified": 1755186698,
+        "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
         "owner": "nixos",
         "repo": "nixpkgs",
-        "rev": "20075955deac2583bb12f07151c2df830ef346b4",
+        "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
         "type": "github"
       },
       "original": {

The removal lines are for 2025-08-19 and the addition lines are for 2025-08-14 in my nixos configuration's flake.lock

@mjoops
Copy link
Copy Markdown

mjoops commented Aug 22, 2025

I can confirm what @normalcea says about it must be related to nixpkg version... I saw same behavior, but did not have time to look at it. Also I can confirm the @flokli wip branch should work fine my main is almost same and it is what I am using now on M2 pro.

@KaitoTLex
Copy link
Copy Markdown

I had the same issue @normalcea and rolled back to a nixpkgs version from early July, and it works for fine. I haven't gotten the chance to test the wip branch.

@ToborWinner
Copy link
Copy Markdown

ToborWinner commented Aug 22, 2025

I had the same issue @normalcea and rolled back to a nixpkgs version from early July, and it works for fine. I haven't gotten the chance to test the wip branch.

Early July is not mesa 25.2 though (just saying because with Hyprland for example the problem is supposedly with mesa 25.2, though I have it even with the PR that is supposed to fix it). Both versions that normalcea tried with gnome (one working, the other one not) are mesa 25.2.

@cyrinux
Copy link
Copy Markdown

cyrinux commented Aug 22, 2025

On my m2 when it

Can it be we need both last kernel and mesa to get all thing working ? You said previously @flokli you test only on last kernel true ? Your other PR ?

Can you check my wip branch, which has both this PR and the kernel bump applied? Just to check whether the new kernel is also needed.

I will try, with a friend we fork and merge your two branches somewhere. I try to build now, as unlucky boy I just got ratelimited by github 😄 Building now...

No luck.

Before, working:

Devices:
========
GPU0:
	apiVersion         = 1.4.318
	driverVersion      = 25.2.0
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
	deviceName         = Apple M2 (G14G B0)
	driverID           = DRIVER_ID_MESA_HONEYKRISP
	driverName         = Honeykrisp
	driverInfo         = Mesa 25.2.0
	conformanceVersion = 1.4.0.0
	deviceUUID         = 1bd3ed7e-1457-492b-9265-58398c9ed634
	driverUUID         = 50b42e28-3db8-c760-e57d-0ad356c727c0
GPU1:
	apiVersion         = 1.4.318
	driverVersion      = 25.2.0
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_CPU
	deviceName         = llvmpipe (LLVM 19.1.7, 128 bits)
	driverID           = DRIVER_ID_MESA_LLVMPIPE
	driverName         = llvmpipe
	driverInfo         = Mesa 25.2.0 (LLVM 19.1.7)
	conformanceVersion = 1.3.1.1
	deviceUUID         = 6d657361-3235-2e32-2e30-000000000000
	driverUUID         = 6c6c766d-7069-7065-5555-494400000000

After, with wip branch:

Devices:
========
GPU0:
	apiVersion         = 1.4.318
	driverVersion      = 25.2.0
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_CPU
	deviceName         = llvmpipe (LLVM 19.1.7, 128 bits)
	driverID           = DRIVER_ID_MESA_LLVMPIPE
	driverName         = llvmpipe
	driverInfo         = Mesa 25.2.0 (LLVM 19.1.7)
	conformanceVersion = 1.3.1.1
	deviceUUID         = 6d657361-3235-2e32-2e30-000000000000
	driverUUID         = 6c6c766d-7069-7065-5555-494400000000

@KaitoTLex
Copy link
Copy Markdown

On my m2 when it

Can it be we need both last kernel and mesa to get all thing working ? You said previously @flokli you test only on last kernel true ? Your other PR ?

Can you check my wip branch, which has both this PR and the kernel bump applied? Just to check whether the new kernel is also needed.

I will try, with a friend we fork and merge your two branches somewhere. I try to build now, as unlucky boy I just got ratelimited by github 😄 Building now...

No luck.

Before, working:

Devices:
========
GPU0:
	apiVersion         = 1.4.318
	driverVersion      = 25.2.0
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
	deviceName         = Apple M2 (G14G B0)
	driverID           = DRIVER_ID_MESA_HONEYKRISP
	driverName         = Honeykrisp
	driverInfo         = Mesa 25.2.0
	conformanceVersion = 1.4.0.0
	deviceUUID         = 1bd3ed7e-1457-492b-9265-58398c9ed634
	driverUUID         = 50b42e28-3db8-c760-e57d-0ad356c727c0
GPU1:
	apiVersion         = 1.4.318
	driverVersion      = 25.2.0
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_CPU
	deviceName         = llvmpipe (LLVM 19.1.7, 128 bits)
	driverID           = DRIVER_ID_MESA_LLVMPIPE
	driverName         = llvmpipe
	driverInfo         = Mesa 25.2.0 (LLVM 19.1.7)
	conformanceVersion = 1.3.1.1
	deviceUUID         = 6d657361-3235-2e32-2e30-000000000000
	driverUUID         = 6c6c766d-7069-7065-5555-494400000000

After, with wip branch:

Devices:
========
GPU0:
	apiVersion         = 1.4.318
	driverVersion      = 25.2.0
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_CPU
	deviceName         = llvmpipe (LLVM 19.1.7, 128 bits)
	driverID           = DRIVER_ID_MESA_LLVMPIPE
	driverName         = llvmpipe
	driverInfo         = Mesa 25.2.0 (LLVM 19.1.7)
	conformanceVersion = 1.3.1.1
	deviceUUID         = 6d657361-3235-2e32-2e30-000000000000
	driverUUID         = 6c6c766d-7069-7065-5555-494400000000

I don't know if this would help but I found this issue on the Mesa GitLab repo. issues#13746 So I think just rolling back nixpkgs for now should work.

@ToborWinner
Copy link
Copy Markdown

ToborWinner commented Aug 22, 2025

I think I can say that it's something with newer versions of nixpkgs and related to the kernel.

diff --git a/flake.lock b/flake.lock
index bd565fa..d728fb1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -101,11 +101,11 @@
     },
     "nixpkgs": {
       "locked": {
-        "lastModified": 1755615617,
-        "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
+        "lastModified": 1755186698,
+        "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
         "owner": "nixos",
         "repo": "nixpkgs",
-        "rev": "20075955deac2583bb12f07151c2df830ef346b4",
+        "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
         "type": "github"
       },
       "original": {

The removal lines are for 2025-08-19 and the addition lines are for 2025-08-14 in my nixos configuration's flake.lock

I can confirm that using fbcf476f790d8a217c3eab4e12033dc4a0f6d23c works and 20075955deac2583bb12f07151c2df830ef346b4 doesn't. I tried it with the new kernel, but it should be the same for the old one as well. I used Hyprland with the patches suggested to me in #340 (though I updated them) to make it work with mesa 25.2.

@Lederstrumpf
Copy link
Copy Markdown

Lederstrumpf commented Aug 22, 2025

I think I can say that it's something with newer versions of nixpkgs and related to the kernel.

diff --git a/flake.lock b/flake.lock
index bd565fa..d728fb1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -101,11 +101,11 @@
     },
     "nixpkgs": {
       "locked": {
-        "lastModified": 1755615617,
-        "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
+        "lastModified": 1755186698,
+        "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
         "owner": "nixos",
         "repo": "nixpkgs",
-        "rev": "20075955deac2583bb12f07151c2df830ef346b4",
+        "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
         "type": "github"
       },
       "original": {

The removal lines are for 2025-08-19 and the addition lines are for 2025-08-14 in my nixos configuration's flake.lock

I can confirm that using fbcf476f790d8a217c3eab4e12033dc4a0f6d23c works and 20075955deac2583bb12f07151c2df830ef346b4 doesn't. I tried it with the new kernel, but it should be the same for the old one as well. I used Hyprland with the patches suggested to me in #340 (though I updated them) to make it work with mesa 25.2.

Also confirm fbcf476f790d8a217c3eab4e12033dc4a0f6d23c works for me.

I used Hyprland with the patches suggested to me in #340 (though I updated them) to make it work with mesa 25.2.

@ToborWinner: I found I don't even need the patches suggested there anymore (i.e. changes from hyprwm/Hyprland#11087) - also works with vanilla hyprland from rev fbcf476f790d8a217c3eab4e12033dc4a0f6d23c (+ this PR for mainline mesa) for me.

@ghost
Copy link
Copy Markdown

ghost commented Aug 22, 2025

Did a git bisect on nixpkgs from the revisions I gave above

I think the culprit is 0974f0729affb13991692ea7fad2da1578997c57 "Move in-tree kernel modules to separate derivation output" (#423933) and f71277d66db862f2cef133e9d63cb858f38d0a0c "linux: install kernel modules to separate output"

This is a listed breaking change in 25.11, so I think this is more reason to start moving to full NixOS kernel builds sooner than later.

The commit before these changes is a9cf4e0ac5055cff060a5db5d1cefbaabc2337f1 "pantheon.elementary-capnet-assist: 8.0.1 -> 8.0.2 (#434000)" in case anyone wants to go to the last good commit.

@yuyuyureka
Copy link
Copy Markdown
Collaborator

If any of you could try it with github:yuyuyureka/nixos-apple-silicon/minimize-patches, that branch provides a full NixOS kernel (and also removes mesa-asahi-edge).

@cyrinux
Copy link
Copy Markdown

cyrinux commented Aug 23, 2025

fbcf476f790d8a217c3eab4e12033dc4a0f6d23c

My last evening test, pinning nixpkgs to fbcf476f790d8a217c3eab4e12033dc4a0f6d23c .

GPU is recognized, but I just open randomly zeditor, and I can see the famous pinky artifacts, so, it's better but still buggy in another way.

$ uname -a
Linux nixos 6.15.8-asahi #1-NixOS SMP PREEMPT_DYNAMIC Tue Jan  1 00:00:00 UTC 1980 aarch64 GNU/Linux

$ Devices:
========
GPU0:
        apiVersion         = 1.4.318
        driverVersion      = 25.2.0
        vendorID           = 0x10005
        deviceID           = 0x0000
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName         = Apple M2 (G14G B0)
        driverID           = DRIVER_ID_MESA_HONEYKRISP
        driverName         = Honeykrisp
        driverInfo         = Mesa 25.2.0
        conformanceVersion = 1.4.0.0
        deviceUUID         = 1bd3ed7e-1457-492b-9265-58398c9ed634
        driverUUID         = dce79c7b-eff8-ef2b-96c5-93ae5d9d6c91
GPU1:
        apiVersion         = 1.4.318
        driverVersion      = 25.2.0
        vendorID           = 0x10005
        deviceID           = 0x0000
        deviceType         = PHYSICAL_DEVICE_TYPE_CPU
        deviceName         = llvmpipe (LLVM 19.1.7, 128 bits)
        driverID           = DRIVER_ID_MESA_LLVMPIPE
        driverName         = llvmpipe
        driverInfo         = Mesa 25.2.0 (LLVM 19.1.7)
        conformanceVersion = 1.3.1.1
        deviceUUID         = 6d657361-3235-2e32-2e30-000000000000
        driverUUID         = 6c6c766d-7069-7065-5555-494400000000

@cyrinux
Copy link
Copy Markdown

cyrinux commented Aug 23, 2025

If any of you could try it with github:yuyuyureka/nixos-apple-silicon/minimize-patches, that branch provides a full NixOS kernel (and also removes mesa-asahi-edge).

Linux nixos 6.16.1-asahi #1-NixOS SMP Tue Jan 1 00:00:00 UTC 1980 aarch64 GNU/Linux

Pinky artifacts in zeditor too, but gpu detected, btw, its tooks maybe 4x more times of building compared to "optimized" kernel as we build all modules i think.

@Lederstrumpf
Copy link
Copy Markdown

Lederstrumpf commented Aug 23, 2025

Did a git bisect on nixpkgs from the revisions I gave above

I think the culprit is 0974f0729affb13991692ea7fad2da1578997c57 "Move in-tree kernel modules to separate derivation output" (#423933) and f71277d66db862f2cef133e9d63cb858f38d0a0c "linux: install kernel modules to separate output"

This is a listed breaking change in 25.11, so I think this is more reason to start moving to full NixOS kernel builds sooner than later.

The commit before these changes is a9cf4e0ac5055cff060a5db5d1cefbaabc2337f1 "pantheon.elementary-capnet-assist: 8.0.1 -> 8.0.2 (#434000)" in case anyone wants to go to the last good commit.

Thanks for the bisect @normalcea 🙏
I can use latest nixpkgs-unstable with just NixOS/nixpkgs#423933 reverted (https://github.com/Lederstrumpf/nixpkgs/tree/revert-PR423933) together with @flokli's wip branch (i.e. this PR +kernel bump #326), and have working GPU again:

Device Properties and Extensions:
=================================
GPU0:
VkPhysicalDeviceProperties:
---------------------------
        apiVersion        = 1.4.318 (4211006)
        driverVersion     = 25.2.1 (104865793)
        vendorID          = 0x10005
        deviceID          = 0x0000
        deviceType        = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName        = Apple M2 Max (G14C B1)
        pipelineCacheUUID = 806ce983-5c5b-7c07-cc3a-aac1d5dbfefd

If any of you could try it with github:yuyuyureka/nixos-apple-silicon/minimize-patches, that branch provides a full NixOS kernel (and also removes mesa-asahi-edge).

@yuyuyureka: I tried this, but GPU wasn't recognized if I also used latest nixpkgs. Rebuilding now with revert of NixOS/nixpkgs#423933 - just takes quite some time. (UPDATE: can now confirm your branch with full NixOS kernel works if also reverting NixOS/nixpkgs#423933)

@yuyuyureka
Copy link
Copy Markdown
Collaborator

So there is absolutely no relation between the breakage we've been observing with Rust not being detected in the Linux build, and removing mesa-asahi-edge.

If there are no more concerns related to this, I would like to merge it soon.

Copy link
Copy Markdown
Collaborator

@tpwrules tpwrules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvements. Tested again and working for me.

Let's fix the driver build before cutting a new release.

@tpwrules tpwrules merged commit 9efacf8 into nix-community:main Aug 23, 2025
2 checks passed
@flokli flokli deleted the mainline-mesa branch August 23, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build issue with mesa ERROR: Unknown options: "gallium-mediafoundation"