Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only llvmpipe is detected as GPU backend on latest release #63

Closed
bkchr opened this issue Mar 24, 2023 · 9 comments · Fixed by #69
Closed

Only llvmpipe is detected as GPU backend on latest release #63

bkchr opened this issue Mar 24, 2023 · 9 comments · Fixed by #69

Comments

@bkchr
Copy link
Contributor

bkchr commented Mar 24, 2023

I build the latest release with the experimental mesa GPU driver, but only llvmpipe is detected as backend. Anyone seen this issue as well?

@bkchr
Copy link
Contributor Author

bkchr commented Mar 24, 2023

Looks like the Asahi kernel module isn't build 🤔

@asdrubalini
Copy link

I also have this issue I think. Sway has been super laggy since yesterday. Haven't yet checked if it's using llvmpipe though, but I highly suspect.

@bkchr
Copy link
Contributor Author

bkchr commented Mar 24, 2023

Yeah, my KDE is also super laggy, so probably the same! I didn't yet figure out why the module isn't build.

@bkchr
Copy link
Contributor Author

bkchr commented Mar 24, 2023

Okay, I found the commit that broke it: NixOS/nixpkgs@e999433

Reverting this commit fixes it for me. Now I need to find out why it breaks.

@asdrubalini
Copy link

Thanks! For anyone wondering, using the pinned nixpkgs version from this repo works fine (since it is pinned to a commit before the offending one). Now that I have a usable system I'm going to debug too.

@bkchr
Copy link
Contributor Author

bkchr commented Mar 26, 2023

When commenting out this line it works again. I don't get what oldconfig is doing there 🤷

vilvo added a commit to vilvo/mxdots that referenced this issue Mar 31, 2023
- tpwrules/nixos-apple-silicon#63

Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
@fl0werpowers
Copy link

fl0werpowers commented Apr 22, 2023

Given that this issue is solved via changing something upstream, perhaps it should be raised upstream as well? or should it be fixed in the experimental kernel config instead? i don't really understand what's the path towards dealing with this issue

@QuentinI
Copy link
Contributor

QuentinI commented May 4, 2023

The reason asahi driver is not built is a faulty script in kernel source. By adding this patch to kernelPatches I'm able to make kernel build with Rust support, but unfortunately build fails because of a reference cycle.
Probably something like NixOS/nixpkgs#225756, which also surfaced after NixOS/nixpkgs#221707

diff --git a/scripts/rust_is_available.sh b/scripts/rust_is_available.sh
index aebbf1913..b7b0a4abc 100755
--- a/scripts/rust_is_available.sh
+++ b/scripts/rust_is_available.sh
@@ -102,8 +102,7 @@ fi
 # Check that the `libclang` used by the Rust bindings generator is suitable.
 bindgen_libclang_version=$( \
 	LC_ALL=C "$BINDGEN" $(dirname $0)/rust_is_available_bindgen_libclang.h 2>&1 >/dev/null \
-		| grep -F 'clang version ' \
-		| grep -oE '[0-9]+\.[0-9]+\.[0-9]+' \
+		| grep -oP 'clang version \K[0-9]+\.[0-9]+\.[0-9]+' \
 		| head -n 1 \
 )
 bindgen_libclang_min_version=$($min_tool_version llvm)

@QuentinI
Copy link
Contributor

QuentinI commented May 4, 2023

Gottem
Not sure it's merge-able, but at least it works

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 a pull request may close this issue.

5 participants