summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2014-04-16 10:58:01 +0530
committerAmit Pundir <amit.pundir@linaro.org>2014-04-16 19:57:58 +0530
commitf1e466ad4dd8360eb72b9cf9c77c65b067ee1eba (patch)
tree3fded91e7465a6354f8c353ca25436163e16993e
parenta59146dc30a50c48ee0b3b022252cb0765877330 (diff)
downloadnative-f1e466ad4dd8360eb72b9cf9c77c65b067ee1eba.tar.gz
libEGL: use s/w rendering on h/w with no GPU
Fallback to Software Renderer used for emulators if we are running on a hardware with no GPU support. Change-Id: I9c61f1cb93a9e63b0dd4bfdb1323b189c7f4c01a Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--opengl/libs/EGL/Loader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index e528831703..bdf6419a8a 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)