diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2014-04-16 10:58:01 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2014-05-08 02:47:25 +0530 |
commit | 5f2ceb11ea352243fe069685856ac411f7000761 (patch) | |
tree | 451151b24599531a958276f7c01d96013b1e717e | |
parent | e2cc43a80227edf3ef60d11a1dbe96807805895b (diff) | |
download | native-5f2ceb11ea352243fe069685856ac411f7000761.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 1fcc048b28..1adfcd948a 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) |