-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
feat: mesa 24.1 #1082
feat: mesa 24.1 #1082
Conversation
So the COPR build works for x86_64 but is failing on i386, at the point of installing rust dependencies.
I'm not too sure why that would work on one arch but not the other; I thought they were not arch specific (and indeed in the working 64 bit build they show as Any pointers would be helpful; I know close to zero about rust 😃 |
Description of changes: - Upgrade to mesa 24.1 - Remove Broadcom fix backport since it's part of 24.1 release - 'nouveau-experimental' vulkan driver is now just 'nouveau' - disable Intel RayTracing on anything but x86_64 (it's not supported anywhere else) - Few dependency definitions / updates to fix build issues - python3-pycparser - cbindgen - version bump for wayland-protocols - restrict proc-macro2 crate to `< 1.0.80` (fixes `error[E0658]: use of unstable library feature 'proc_macro_byte_character'`) - also restricting syn crate to `< 2.0.59` because of dependency conflict on proc-macro2 - add 'paste' crate - add new dri libs to defined output files
It worked here: https://copr.fedorainfracloud.org/coprs/trouter/bazzite-multilib/build/7337624/ Which was a build from the 'main' branch of mesa before they released the first RC of 24.1
This reverts commit 4f52e2d.
Been in the middle of a move but I will check this all out soon, thank you so much for doing it! |
No prob! Seems like the rust package woes are resolved now that Rust 1.78 is available in the Fedora 40 package repos so I am updating the PR to remove some of the version restrictions I added there. Edit: I was wrong 😅 What's the preferred workflow on this repo w.r.t. git commits? Should I squash all my commits on this branch into a single one before review+merge? |
Ok, so the build is now working: https://copr.fedorainfracloud.org/coprs/trouter/bazzite-multilib/build/7436938/ Here's a summary of what I have learned:
if rustc < 79 {
println!("cargo:rustc-cfg=no_literal_byte_character");
} However, when we try to build mesa in COPR we get the warnings about using "unstable library feature". This is the same as described here: https://users.rust-lang.org/t/cannot-compile-simple-tokio-example/109956 I don't know exactly why that is happening, because it looks like this should just work automatically. So, I tried to downgrade Next topic is meson subprojects. Looks like mesa actually defines a bunch of these rust dependencies directly in the meson build system: https://gitlab.freedesktop.org/mesa/mesa/-/blob/406dda70e7c9baa59c975eb64025e7c3b210c3bc/subprojects/proc-macro2.wrap#L2 So I added the Lastly the I built an image based off
|
$ glxinfo | grep -i mesa | grep version
OpenGL core profile version string: 4.3 (Core Profile) Mesa 24.1.0-rc3
OpenGL version string: 4.3 (Compatibility Profile) Mesa 24.1.0-rc3
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.1.0-rc3
$ vulkaninfo | grep -i mesa
VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan version 1.3.211, layer version 1:
driverID = DRIVER_ID_MESA_NVK
driverInfo = Mesa 24.1.0-rc3
driverID = DRIVER_ID_MESA_LLVMPIPE
driverInfo = Mesa 24.1.0-rc3 (LLVM 18.1.1) 🥳 |
@aaron-trout Thanks for all the work on this! Can't wait to get stable NVK out to people |
Ah, you beat me to it I was just trying to update the branch for 24.1 final and my push was rejected 😅 There was still some commented out stuff in here, and I think because of https://github.com/ublue-os/bazzite/blob/main/spec_files/mesa/mesa-28923.patch we can now remove the workaround I had related to
Follow ups added in: #1165 |
Description of changes:
restrict proc-macro2 crate to< 1.0.80
(fixeserror[E0658]: use of unstable library feature 'proc_macro_byte_character'
)also restricting syn crate to< 2.0.59
because of dependency conflict on proc-macro2This is a draft for now using the mesa 24.1 release candidate builds. Once the 24.1.0 final drops, I will update the PR and mark as ready for review.
COPR Build: https://copr.fedorainfracloud.org/coprs/trouter/bazzite-multilib/package/mesa/