-
Notifications
You must be signed in to change notification settings - Fork 417
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
mesa: update to 24.3.0, wayland-protocol updated to 1.38 #1390
base: master
Are you sure you want to change the base?
Conversation
e4e19a9
to
8402318
Compare
Official mesa 24.3.0 is released, bbappend is updated with official release. This looks promising too, but let's not live too much on the edge 🗡️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Nice work! I tested this pull request on Raspberry Pi 5. It brings significant improvement because with it Weston uses dri_gbm.so
for both the microHDMI and the DSI. I tested with the first generation of the official 7" Raspberry Pi touchscreen display.
Is this work supposed to end up in oe-core? PS: Nice work! |
Eventually Poky would update mesa, not sure which future version that will be. Right now, DSI on RPI 5 with mesa from styhead with version 24.0.7 is unusable. So, let's say this PR can live to help anyone wants to use DSI with RP1 chip on RaspberryPi 5 drm-rp1-dsi_dri.so exists in Raspbian os, I have no clue where did Raspbian os obtain such blob. |
Seems build have failed due to running a test test_security: |
I see, RPI CI tests are ran against Poky master branch, not Styhead. |
The failing test is due to new requirement added in Poky on the whole layer to have SECURITY.md file, it's not related to my recipe updates though:
https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-repository Perhaps that's something for meta-raspberrypi maintainer to do |
Fixes Issues like agherzan#1390 (comment) Signed-off-by: Khem Raj <[email protected]>
Thank you so much for posting this! This got hardware acceleration for Weston on RPi5 w/ the official 7" display over DSI working. I'm currently on
PACKAGECONFIG:append:rpi = " gallium gallium-llvm vc4 v3d ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'vulkan broadcom', '', d)}"
DRIDRIVERS:class-target:rpi = ""
# Remove unused patches
SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
"
SRC_URI[sha256sum] = "97813fe65028ef21b4d4e54164563059e8408d8fee3489a2323468d198bf2efc"
PV = "24.3.0"
# -Dglvnd is deprecated from true/false to enabled/disabled
PACKAGECONFIG[glvnd] = "-Dglvnd=enabled, -Dglvnd=disabled, libglvnd"
# DRI3 note:
# DRI3 Build option is removed from meson.
PACKAGECONFIG:remove = "dri3"
unset PACKAGECONFIG[dri3]
DEPENDS += " wayland-protocols llvm python3-pyyaml python3-pyyaml-native"
RDEPENDS:libgl-mesa += " llvm wayland-protocols"
FILES:libgbm += " ${libdir}/gbm/dri_gbm*.so"
FILES:libgl-mesa += " ${libdir}/libgallium*.so"
FILES:libgbm-dev += " ${includedir}/gbm.h"
DEPENDS += "libxshmfence"
# mesa-megadriver uses symlinks for compatibility
INSANE_SKIP:mesa-megadriver += "dev-so"
|
Thanks @lifeisafractal , I'm glad you found this helpful. I was building against styhead, that's why I needed the wayland protocol receipe bump. Thanks for posting changes, I will adopt your changes in the main PR next week. I see you added a new build time depends. |
Thanks for the heads up on 24.3.1. I'll bump to that in my local layer to be on a released version.
That was originally brought in as a dependency through the |
@BassemMohsen your patch applies clearly on Scarthgap and works fine. I've tested in today. Congrats again for the great work! Do you plan to open a GitHub pull request for branch scarthgap? I need this and if you don't have the time I will be happy to open it for you. |
A bit busy with some CES demos this week. Sure, I will open a new PR for Scarthgap this Saturday. can also base it on top of PR #1391 that adds SECURITY.md file, so it passes all the CI checks. |
Fixes Issues like #1390 (comment) Signed-off-by: Khem Raj <[email protected]>
Upgrade to latest official mesa release. Fixes DRM DSI linking to missing and non exisiting library drm-rp1-dsi_dri.so on mesa 24.0.7 from poky scarthgap and styhead. agherzan#1389 Signed-off-by: Bassem Nomany <[email protected]>
8402318
to
df1323a
Compare
…rity issues Fixes Issues like agherzan/meta-raspberrypi#1390 (comment) Signed-off-by: Khem Raj <raj.khemgmail.com>
Update to latest mesa 24.3.0 release
Fixes DRAM DSI linking to missing library drm-rp1-dsi_dri.so
fixes #1389
This PR will be completed when 24.3.0 is final official release. For now, I'm leaving it as work of progress to help whoever have issues with RPI5 DSI.
To be done:
Test how x11 build and how it responds to the changes of DRI3 build option.