AlmaLinux / raspberry-pi

AlmaLinux Raspberry Pi
122 stars 17 forks source link

'v3d' Driver on 9.2! #32

Closed sallyhaj closed 1 week ago

sallyhaj commented 1 year ago

Hello there, I have tried "https://repo.almalinux.org/rpi/9/images/AlmaLinux-9-RaspberryPi-GNOME-latest.aarch64.raw.xz" on Raspberry Pi 4, first thing, I have updated to 9.2, then I have checked the GUI, it's very sluggish, I've checked the driver and it's showing that "llvmpipe", which seems the system couldn't recognize the other one, by the way in "config.txt" this line "dtoverlay=vc4-fkms-v3d" is there. What am I missing to get the system GPU hardware acceleration supported?

Thank you. 9gWkAoxLQcu4tuy0qaXGJw TtEoiobKRHG4ATBEvkDc0Q

metalefty commented 7 months ago

I would like to fix this but not sure what I should do.

pastalian commented 2 weeks ago

It seems that vc4 and v3d are disabled in mesa. Could this be the cause? I don't have the hardware to test though. https://git.almalinux.org/rpms/mesa/src/branch/c9/SPECS/mesa.spec#L26-L27

sallyhaj commented 2 weeks ago

Thank you @pastalian for pointing that out. In the logs of https://git.almalinux.org/rpms/mesa/src/branch/c9/SPECS/mesa.spec:

* Fri Mar 26 2021 Adam Jackson <ajax@redhat.com> - 21.0.1-3
- Split out with_r300 and with_r600
- Disable r300, r600, etnaviv, lima, vc4 and v3d in RHEL

Which was enabled before, but from 21.0.1-3 release it disabled. Maybe we can get Fedora Mesa as an example: https://src.fedoraproject.org/rpms/mesa/blob/rawhide/f/mesa.spec I can test on RPi4-5 Thank you.

metalefty commented 2 weeks ago

Indeed.

$ rpm -ql mesa-dri-drivers | egrep "v3d|vc4"
$ 
metalefty commented 2 weeks ago

It worked now.

WIN_20240624_10_30_49_Pro

metalefty commented 2 weeks ago

Try this if you would like to try it locally: https://build.almalinux.org/build/14861

sallyhaj commented 2 weeks ago

Thank you @metalefty I want to test it on RPi5, should I just download the packages and install them manually? or if there is something similar to Fedora "sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-fff66108a5" in Almalinux? Thank you.

metalefty commented 2 weeks ago

The packages are now released officially. Just do dnf update then you will grab the driver.

metalefty commented 1 week ago

New images that include V3D drivers are released.

sallyhaj commented 1 week ago

I've just updated, it's really really fast. Thank you so much @pastalian for discovering the issue. Thank you @metalefty For your all your work. desDpsA lufzclZ

metalefty commented 1 week ago

My pleasure. Thank you for the patience!