PINE64
Very slow glamor 2D acceleration - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Very slow glamor 2D acceleration (/showthread.php?tid=14147)



Very slow glamor 2D acceleration - hjalfi - 06-08-2021

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?


RE: Very slow glamor 2D acceleration - hjalfi - 06-10-2021

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.


RE: Very slow glamor 2D acceleration - hjalfi - 06-15-2021

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.


RE: Very slow glamor 2D acceleration - jbrock - 09-06-2021

(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