GPU acceleration

Hi

I’m running a Rock 4 SE with the Debian server bullseye build.

glmark2-es2-drm --off-screen is only giving around 70fps

 OpenGL Information
    GL_VENDOR:      Mesa/X.org
    GL_RENDERER:    llvmpipe (LLVM 11.0.1, 128 bits)
    GL_VERSION:     OpenGL ES 3.2 Mesa 20.3.5
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0 samples=0
    Surface Size:   1920x1080 fullscreen

But this page https://rockpi.org/rockpi4 claims I should get 237 fps.

Using Arm Streamline and gatord it’s didn’t look like the GPU is being used at all. How can I resolve this?

I’ve seen some suggestion elsewhere but none of them seem to work for Debian bullseye. For example rockchip-mali-midgard14 isn’t in the rocklinux apt repository for bullseye.

Two updates

  1. I’ve read this http://opensource.rock-chips.com/wiki_Mali but the git repo https://github.com/rockchip-linux/libmali no longer exists.

  2. I’ve read this https://wiki.radxa.com/Rockpi4/dev/install-opencl but http://apt.radxa.com/bullseye-stable/ doesn’t contain rockchip-mali-midgard14.

It seems the documentation is out of date. Does anyone know how to get GPU acceleration on a rock 4, mainline kernel, Debian bullseye?

While searching the internet I found your post. I don’t know if this is relevant for you now, but Radxa moved to new repositories.

for bulleye

Install signing keyring

keyring="$(mktemp)"
version="$(curl -L https://github.com/radxa-pkg/radxa-archive-keyring/releases/latest/download/VERSION)"
curl -L --output “$keyring” “https://github.com/radxa-pkg/radxa-archive-keyring/releases/latest/download/radxa-archive-keyring_${version}_all.deb
sudo dpkg -i “$keyring”
rm -f “$keyring”

Add apt package repo

sudo tee /etc/apt/sources.list.d/70-radxa.list <<< “deb [signed-by=/usr/share/keyrings/radxa-archive-keyring.gpg] https://radxa-repo.github.io/bullseye/ bullseye main”
sudo apt-get update

https://radxa-repo.github.io/bullseye/files.list says that it contains alot of drivers for libmali

   ./pool/main/libm/libmali
./pool/main/libm/libmali/libmali-midgard-t86x-r18p0-x11-gbm_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-bifrost-g52-g2p0-x11-gbm-dbgsym_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-valhall-g610-g6p0-wayland-gbm-dbgsym_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-valhall-g610-g6p0-x11-gbm_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-valhall-g610-g6p0-gbm-dbgsym_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-bifrost-g52-g2p0-x11-gbm_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-utgard-450-r7p0-x11-gbm-dbgsym_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-valhall-g610-g6p0-dummy-dbgsym_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-valhall-g610-g6p0-wayland-gbm_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-valhall-g610-g6p0-dummy_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-valhall-g610-g6p0-x11-gbm-dbgsym_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-bifrost-g31-g2p0-x11-gbm_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-utgard-450-r7p0-x11-gbm_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-midgard-t86x-r18p0-x11-gbm-dbgsym_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-bifrost-g31-g2p0-x11-gbm-dbgsym_1.9-1_arm64.deb
./pool/main/libm/libmali/libmali-valhall-g610-g6p0-gbm_1.9-1_arm64.deb