summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Domínguez <andresdju@gmail.com>2019-04-09 15:39:56 +0000
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-04 01:41:53 +0100
commit421d3cdcb0eac2bcaa0709fb2e2ca77ee2e06427 (patch)
treef32f32a96a534bd1d6172b690b9f29cfc586a3e6
parent5fd952df7b81793f174dde0eb060632e7c7edef3 (diff)
downloadvendor_replicant-421d3cdcb0eac2bcaa0709fb2e2ca77ee2e06427.tar.gz
vendor_replicant-421d3cdcb0eac2bcaa0709fb2e2ca77ee2e06427.tar.bz2
vendor_replicant-421d3cdcb0eac2bcaa0709fb2e2ca77ee2e06427.zip
Always use libagl for system binaries that are too slow with LLVMpipe
When using LLVMpipe by default, some system binaries are too slow to make the device usable. This overrides the OpenGL implementation for the following binaries: - bootanimation - surfaceflinger - system_server When loading a binary, the EGL loader will then check if there is an empty file corresponding to the cmdline in /system/etc/libGLES_android and use libagl if it exists. For instance to make SurfaceFlinger use libagl, we first need to look at /proc/<pid>/cmdline. Here it returns /system/bin/surfaceflinger. Once we have that, we can then create the following empty file to make it use libagl: /system/etc/libGLES_android/system/bin/surfaceflinger Signed-off-by: Andrés Domínguez <andresdju@gmail.com> GNUtoo@cyberdimension.org: squashed commits, commit message: added background Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: David Ludovino <dllud@riseup.net>
-rw-r--r--config/common.mk4
-rw-r--r--prebuilt/common/etc/libGLES_android/system/bin/bootanimation0
-rw-r--r--prebuilt/common/etc/libGLES_android/system/bin/surfaceflinger0
-rw-r--r--prebuilt/common/etc/libGLES_android/system_server0
4 files changed, 4 insertions, 0 deletions
diff --git a/config/common.mk b/config/common.mk
index a79025f6..8d7d841d 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -90,6 +90,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
vendor/replicant/prebuilt/common/etc/firmware/htc_9271.fw:system/etc/firmware/htc_9271.fw
+# Copy default EGL overrides
+PRODUCT_COPY_FILES += \
+ $(call find-copy-subdir-files,*,vendor/replicant/prebuilt/common/etc/libGLES_android,system/etc/libGLES_android)
+
# Include CM audio files
include vendor/replicant/config/cm_audio.mk
diff --git a/prebuilt/common/etc/libGLES_android/system/bin/bootanimation b/prebuilt/common/etc/libGLES_android/system/bin/bootanimation
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/prebuilt/common/etc/libGLES_android/system/bin/bootanimation
diff --git a/prebuilt/common/etc/libGLES_android/system/bin/surfaceflinger b/prebuilt/common/etc/libGLES_android/system/bin/surfaceflinger
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/prebuilt/common/etc/libGLES_android/system/bin/surfaceflinger
diff --git a/prebuilt/common/etc/libGLES_android/system_server b/prebuilt/common/etc/libGLES_android/system_server
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/prebuilt/common/etc/libGLES_android/system_server