Feature #1844

Feature #1539: Graphics acceleration

Select libagl/llvmpipe per app

Added by Jeremy Rand almost 2 years ago. Updated about 2 months ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


It would be useful to be able to select libagl or llvmpipe renderer on a per-app basis. This would allow apps that need llvmpipe to work, while apps that don't need llvmpipe can run faster with libagl.



Updated by Jeremy Rand almost 2 years ago

Jookia and I have been tinkering around with this. Unfortunately has been a bit of a roadblock for this research.


Updated by Jeremy Rand 12 months ago

  • % Done changed from 0 to 10

Experimental branch at (specifically the replicant-6.0-egl branch). I haven't verified whether it builds without errors. If anyone would like to build it and post binaries (if it doesn't error), that would be welcome. (Make sure you verify the OpenPGP signature on the tip of the branch, it should be signed by my key.)


Updated by Kurtis Hanna 12 months ago

  • Target version changed from Replicant 6.0 to Replicant 6.0 0004

Updated by Jeremy Rand 6 months ago

Some notes about the patch I linked above:

Requires ro.zygote.disable_gl_preload to be set. You can check for this by typing the following in an adb shell:

getprop ro.zygote.disable_gl_preload

It should say "true".

You can create an EGL override by running the following in a root adb shell:

su -c "mkdir -m 770 /data/data/org.mozilla.fennec_fdroid/os_override" $(stat -c "%U" /data/data/org.mozilla.fennec_fdroid/)
su -c "ln -s /system/lib/egl/ /data/data/org.mozilla.fennec_fdroid/os_override/" $(stat -c "%U" /data/data/org.mozilla.fennec_fdroid/)

The above example enables llvmpipe for the app "org.mozilla.fennec_fdroid".

You can access debug output by grepping logcat for "libEGL".

Docs for old patch by Jookia, which may still be useful:


Updated by Denis 'GNUtoo' Carikli 3 months ago

  • Status changed from New to Feedback

Updated by Denis 'GNUtoo' Carikli 3 months ago

In order to be integrated in the next Replicant release (0004), the patches have to be sent on the mailing list so we could collectively review them.

Thanks a lot for working on that.


Updated by Jeremy Rand 2 months ago

Newest patches are by adj (on top of earlier patches by Jookia and me), in these two repos:


Updated by Kurtis Hanna about 2 months ago

  • Parent task set to #1539

Also available in: Atom PDF