Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3920d46 authored by Yuxin Hu's avatar Yuxin Hu
Browse files

Allow queryAngleChoice when ANGLE is system driver but is overridden

If ro.hardware.egl is set to "angle", but persist.graphics.egl is
set to a value that is not "angle", we should still allow egl loader to
load driver specified by persist.graphics.egl. Instead of skipping
queryAngleChoice() and always setup ANGLE when ro.hardware.egl is set to
"angle", we should proceed with queryAngleChoice(), and check what
ANGLE_GL_DRIVER_CHOICE_DEFAULT and ANGLE_GL_DRIVER_CHOICE_NATIVE
actually points to. If they still point to "angle", proceed with
setupAngleFromApk() || setupAngleFromSystem(). If they point to
"non-angle", early out and skip setupAngleFromAok() ||
setupAngleFromSystem().

Flag: android.os.query_angle_choice_flag
Test: make, flash and boot
Bug: b/408439360
Bug: b/409589250
Change-Id: I4f711aace7de1ef81ae4367dc5e3b5bfd946f97c
parent 1efa2137
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment