diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2014-04-16 10:58:01 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2014-04-16 10:58:01 +0530 |
commit | 18372e65d1e72c0e51bc98ad839b19ba1660641a (patch) | |
tree | 3b6da1ff56ef8f0eed30a97e4b4dd582ac9c4c84 | |
parent | 0e6b64aef85a3790fe798356351efc2efc6ec509 (diff) | |
download | native-18372e65d1e72c0e51bc98ad839b19ba1660641a.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.cpp | 5 |
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) |