0
votes

Does anyone know how to get Chromium to be hardware accelerated for WebGL if you start with Buster Lite?


Hardware: Raspberry Pi 4 w/ 2GB

Test1: Buster w/ Desktop 2019-09-26 chrome://gpu shows WebGL: Hardware Accelerated and three.js renders fine and chromium shows minimal cpu usage.

Test2: Buster Lite 2019-09-26 install:

$ sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox chromium-browser Then make an auto start that launches chromium-browser and run $ startx.

chrome://gpu shows WebGL: software only, hardware acceleration unavailable and three.js renders very slowly. Chromium also shows > 200% cpu.


I think the issue might be related to mesa. In the 'desktop' version, chromium shows that it's using mesa, and the the 'lite' version, it does not. Mesa shows that it's installed on the 'lite' if I query for it in the console and I can run the gears demo on the 'lite' and it renders just fine.

I have the 'desktop' version implemented as a temporary solution, but I would really like to go back to using 'lite' with just chromium.

1

1 Answers

2
votes

I installed libgl1-mesa-dri libgl1-mesa-glx libgles2 libgles2-mesa additionally and according to the chrome://gpu page HW acceleratated webgl become available.

Update:

I checked it second time, and it seems only libgles2 is enough to enable webGL HW acceleration