blob: 289ceeceba26933f68bdeb2d57051b378f9a4f43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|