Tiny Core Base > Raspberry Pi

Can't get 3D acceleration working on CM5

(1/3) > >>

xsquared:
I have piCore v15 aarch64 running on a CM5. I have a basic MIPI DSI display connected and it works with dtoverlay=vc4-kms-dsi-generic in my config.txt

However, no 3D acceleration:


--- Code: ---tc@box:~$ glxinfo -display :0 |grep Accelerated
MESA-LOADER: glx: failed to open zink: driver not built!
MESA-LOADER: glx: failed to open drm-rp1-dsi: driver not built!
failed to load driver: drm-rp1-dsi
    Accelerated: no
--- End code ---

NB: drm_rp1_dsi is loaded and the errors go away if I set the environment variable MESA_LOADER_DRIVER_OVERRIDE=zink, however glxinfo tells me the OpenGL renderer is not zink but llvmpipe.

I was able to get acceleration working on a CM4 with piCore v13, a few years back, with dtoverlay=vc4-fkms-v3d, by adding some config files into /usr/local/share/X11/xorg.conf.d/ This fix loaded the glamoregl module, which provided the acceleration. Looking at the structure for v15, I see a 20-noglamor.conf in /usr/local/share/Xorg-3d/files so maybe that is no longer the way to go now we have a RP1 chip handling the GPU. I was probably cribbing from RaspberryPi OS, but there's not much for configuration in X server there on my CM5.

Any ideas on things I can try or should investigate would be much appreciated.

Juanito:
I only have RPi0w, RPi3 and RPi4 to test with and the zink driver was not required with those to get hardware acceleration.

mesa says this:
--- Quote ---The Zink driver is a Gallium driver that emits Vulkan API calls instead of targeting a specific GPU architecture. This can be used to get full desktop OpenGL support on devices that only support Vulkan
--- End quote ---
Were you trying to use vulkan - I can get vulkan without the zink driver.

20-noglamor.conf was required to get hardware acceleration with RPi3.

I'll take a look.

Juanito:
zink driver added - let us know if things work

xsquared:
Thanks, Juanito. I wasn't trying to use vulkan or zink. My app uses OpenGL for graphics calls, so I don't think I need zink, but I will try the driver you posted.

xsquared:
That didn't work for me. I think, since my app runs on X, the missing piece is to get Glamor working and talking to MESA. If I can do that I should get hardware acceleration on CM5. It's not my area of expertise, so I'm chipping away at it.

Navigation

[0] Message Index

[#] Next page

Go to full version