diff options
Diffstat (limited to 'frameworks/native/native.git-5.patch')
-rw-r--r-- | frameworks/native/native.git-5.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/frameworks/native/native.git-5.patch b/frameworks/native/native.git-5.patch new file mode 100644 index 0000000..289ceec --- /dev/null +++ b/frameworks/native/native.git-5.patch @@ -0,0 +1,33 @@ +From 5b26de0b29013f2da4b2bf20268df2a3a1d8d184 Mon Sep 17 00:00:00 2001 +From: Amit Pundir <amit.pundir@linaro.org> +Date: Wed, 6 Nov 2013 10:30:48 +0530 +Subject: [PATCH] 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: Id0772f466b5a08f90e7f9eceeb9b8f5f69179539 +Signed-off-by: Amit Pundir <amit.pundir@linaro.org> +--- + opengl/libs/EGL/Loader.cpp | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp +index 02914a0..7c4822c 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) +-- +1.7.9.5 + |