How to workaround hardware acceleration problems in SARPi
by stormchaser3000 from LinuxQuestions.org on (#5DYZ4)
Hello,
When I first got Slackware ARM working on the raspberry pi 4 using SARPi, I ran into a few odd problems with hardware accelerated graphics which made the user experience quite unbearable. It took me a few days to finally discover a simple workaround that should be adequate until the mesa project manages to fix a couple things (assuming that their glx implementation with the vc4 driver was the culprit).
In xfce4 I was able to workaround the performance problems by disabling display compositing under the compositor tab in Window Manager Tweaks.
In Plasma 5, I was able to use the XRender software rendering backend as a hacky workaround for hardware acceleration causing kwin to be very slow and choppy.
If this doesn't help your performance problems, then make sure that mesa is compiled with vc4 and v3d support. I would also recommend making sure that mesa is compiled with swrast, although I am not sure if it is necessary (Someone please correct me on this).
I hope that this will help anyone who ran into the same graphical hardware acceleration problems as me until something is fixed in the upstream projects.


When I first got Slackware ARM working on the raspberry pi 4 using SARPi, I ran into a few odd problems with hardware accelerated graphics which made the user experience quite unbearable. It took me a few days to finally discover a simple workaround that should be adequate until the mesa project manages to fix a couple things (assuming that their glx implementation with the vc4 driver was the culprit).
In xfce4 I was able to workaround the performance problems by disabling display compositing under the compositor tab in Window Manager Tweaks.
In Plasma 5, I was able to use the XRender software rendering backend as a hacky workaround for hardware acceleration causing kwin to be very slow and choppy.
If this doesn't help your performance problems, then make sure that mesa is compiled with vc4 and v3d support. I would also recommend making sure that mesa is compiled with swrast, although I am not sure if it is necessary (Someone please correct me on this).
I hope that this will help anyone who ran into the same graphical hardware acceleration problems as me until something is fixed in the upstream projects.