Very slow glamor 2D acceleration
#1
I have an Armbian setup and have just got Panfrost and glamor X acceleration working. The result is actually _slower_ than it was previously --- it now takes about a second to update a full-screen rxvt terminal.

glxinfo -B shows that I'm using the 'Mali T860 (Panfrost)' device; glxgears shows 60fps and supertuxkart runs about a few frames per second, rather than the 1fps it was pretending to run at previously, so panfrost does look like it's actually _running_. The X logs look like the glamoregl has loaded and I don't see any errors. The panfrost and rockchipdrm modules are loaded and in use (non-zero reference counts). There's no reference to the software rendering engine.

I have:

Kernel: 5.12.6-rockchip64
libgl1-mesa-glx: 20.3.4-1
xserver-xorg-core: 2:1.20.11-1

Any suggestions as to what might be wrong here?
  Reply
#2
This appears to be a general Mesa bug which happens to hit urxvt unusually hard: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3235

Switching to xterm makes my system much more usable, although other apps are hit by it too.
  Reply
#3
Yeah, I've had to blacklist the panfrost module --- it wasn't just that urxvt, it was causing problems all across the board: chromium wouldn't display anything, a few other applications were cripplingly slow, and there were also random slowdowns and freezes.
  Reply
#4
(06-15-2021, 01:56 PM)hjalfi Wrote: Yeah, I've had to blacklist the panfrost module --- it wasn't just that urxvt, it was causing problems all across the board: chromium wouldn't display anything, a few other applications were cripplingly slow, and there were also random slowdowns and freezes.

Thank you so very much for following up here and mentioning that you blacklisted the panfrost module. The only application for which it was causing issues for me was urxvt. Blacklisting solved the issue basically for me. Furthermore, I prefer to run startx instead of using a display manager such as lightdm. I can now use startx because the x session was crashing before with startx with panfrost enabled. I do look forward to trying out panfrost in the future and do appreciate the development on it. For the record, I am running Debian 11 on my Pinebook Pro

Here is the glxgears output with panfrost enabled:
148 frames in 5.0 seconds = 29.470 FPS
164 frames in 5.0 seconds = 32.695 FPS
251 frames in 5.0 seconds = 50.033 FPS
235 frames in 5.0 seconds = 46.852 FPS
210 frames in 5.0 seconds = 41.708 FPS
91 frames in 5.1 seconds = 17.964 FPS
73 frames in 5.0 seconds = 14.547 FPS
189 frames in 5.1 seconds = 37.073 FPS
149 frames in 5.1 seconds = 29.495 FPS
177 frames in 5.0 seconds = 35.283 FPS
138 frames in 5.0 seconds = 27.508 FPS

Here is the glxgears output with panfrost disabled:
159 frames in 5.0 seconds = 31.706 FPS
162 frames in 5.0 seconds = 32.301 FPS
166 frames in 5.0 seconds = 33.092 FPS
162 frames in 5.0 seconds = 32.283 FPS
161 frames in 5.0 seconds = 32.085 FPS
170 frames in 5.0 seconds = 33.941 FPS
279 frames in 5.0 seconds = 55.766 FPS
290 frames in 5.0 seconds = 57.822 FPS
267 frames in 5.0 seconds = 53.397 FPS
158 frames in 5.0 seconds = 31.582 FPS
163 frames in 5.0 seconds = 32.363 FPS
163 frames in 5.0 seconds = 32.483 FPS
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro update broke hardware video acceleration with mpv myself600 2 1,811 01-25-2023, 09:12 AM
Last Post: myself600
  [LibreOffice & Gimp] ARM support: no hardware acceleration on [Manjaro] Pinebook Pro regivanx 0 2,103 06-15-2021, 04:04 AM
Last Post: regivanx
Lightbulb Hardware video acceleration in Chromium on Manjaro siemsenit 3 4,942 06-01-2021, 09:51 AM
Last Post: siemsenit
  Manjaro XFCE MPV Hardware Acceleration p3pp3r 2 5,994 10-14-2020, 08:52 PM
Last Post: p3pp3r
  HW Acceleration for 2d/3d on pinebook pro ljones 6 10,085 09-19-2020, 09:54 AM
Last Post: xmixahlx
  Slow on Manjaro Arm i3 HaxNet 3 5,954 06-30-2020, 06:27 AM
Last Post: brzegorz
  mainline kernel hardware acceleration xmixahlx 33 58,243 06-11-2020, 10:41 AM
Last Post: xmixahlx
  Slow WiFi on Manjaro Default Image 20.04 for PBP SuperUJ 8 11,015 05-28-2020, 08:16 PM
Last Post: nekojet
  Hardware acceleration on PBP brent.thierens 9 10,215 12-23-2019, 10:31 AM
Last Post: ElektromAn

Forum Jump:


Users browsing this thread: 1 Guest(s)