diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2013-11-06 10:30:48 +0530 |
---|---|---|
committer | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2013-12-12 03:59:16 +0100 |
commit | 5b26de0b29013f2da4b2bf20268df2a3a1d8d184 (patch) | |
tree | cc1cbf9715b21100ae17c3c41c29772f491965d4 | |
parent | efa820d42f8e375537b3e318ea26eb01aeac9990 (diff) | |
download | native-5b26de0b29013f2da4b2bf20268df2a3a1d8d184.tar.gz |
libEGL: use s/w rendering on h/w with no GPUlinaro_android_4.4.2_juice
Fallback to Software Renderer used for emulators if we are running
on a hardware with no GPU support.
Change-Id: Id0772f466b5a08f90e7f9eceeb9b8f5f69179539
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r-- | opengl/libs/EGL/Loader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp index 02914a06ea..7c4822c74d 100644 --- a/opengl/libs/EGL/Loader.cpp +++ b/opengl/libs/EGL/Loader.cpp @@ -86,6 +86,11 @@ checkGlesEmulationStatus(void) char prop[PROPERTY_VALUE_MAX]; int result = -1; + /* Running on a hardware with no GPU? */ + property_get("ro.nohardwaregfx",prop,"false"); + if (!strcmp(prop,"true")) + return 0; + /* First, check for qemu=1 */ property_get("ro.kernel.qemu",prop,"0"); if (atoi(prop) != 1) |