How To: WebGL on Chromium Browser with H/W-Accelerated GPU on SBCs

How To: WebGL on Chromium Browser with H/W-Accelerated GPU on SBCs

LinuxFactory on YouTube just published a video on how to enable Chromium Browser to use the GPU for WebGL on the ODROID-N2+. The same method should work for any other SBC running Linux kernel 5.11 with ARM Mali Panfrost Driver (Wayland), like the ODROID-C4 and ODROID-HC4.

From LinuxFactory:

Chromium Browser has been installed to Ubuntu 21.04 on ODROID-N2+ and we will see how it well performs with H/W accelerated GPU on top of Gnome Desktop on Ubuntu 21.04. The H/W accelerated GPU is running over ARM Mali Panfrost driver on Linux kernel 5.11. The same commands and flag set up can be applied to ODROID-C4/HC4 if Ubuntu 21.04 with Linux kernel 5.11 is installed.

Chapters:
00:05 Installing Chromium Browser package
01:50 First WebGL Aquarium test
02:40 Force the GPU acceleration flags on Chromium Browser to support GPU rasterization
04:35 Add Chromium Browser command line flags
06:48 Enable "In-process GPU" flag
08:50 Yet another WebGL test with "Dynamic Cubemap"

Installation commands:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E6A17451DC058F40
$ sudo add-apt-repository -S deb http://ppa.launchpad.net/saiarcot895/chromium-beta/ubuntu/ groovy main
$ sudo apt install chromium-browser chromium-codecs-ffmpeg-extra

Special thanks to:
Alyssa Rosenzweig - Panfrost developer, https://rosenzweig.io/
Saikrishna Arcot - Chromium browser Ubuntu package, https://launchpad.net/~saiarcot895/+archive/ubuntu/chromium-beta

Previous article Project: ODROID-N2+ & VU7A+ as In-Dash System for 2008 Renault
Next article How-To: Configure Arch Linux, Manjaro, etc. to Show Hostname on Network

Leave a comment

Comments must be approved before appearing

* Required fields

x