summaryrefslogtreecommitdiffstats
path: root/opengl/system
diff options
context:
space:
mode:
authorTina Zhang <tina.zhang@intel.com>2014-04-18 14:21:23 +0800
committerTina Zhang <tina.zhang@intel.com>2014-04-18 15:03:55 +0800
commit3f92be74c1e9b2314d4c0f8feaacf7bafce7dedc (patch)
tree4e9956891ccb311a3357099b955d480a6674a43a /opengl/system
parent61a8f0bbc146a4050a885e1e7c314dfc4ab72779 (diff)
downloadandroid_device_generic_goldfish-3f92be74c1e9b2314d4c0f8feaacf7bafce7dedc.tar.gz
android_device_generic_goldfish-3f92be74c1e9b2314d4c0f8feaacf7bafce7dedc.tar.bz2
android_device_generic_goldfish-3f92be74c1e9b2314d4c0f8feaacf7bafce7dedc.zip
Add 64-bit software GLES/EGL support in gralloc.goldfish module
If the emulator chooses running without using the host GPU to do the GLES/EGL acceleration, the gralloc.goldfish module must let the emulator use gralloc.default module which can support the software GLES/EGL. Add this support for 64-bit emulator. Change-Id: I241e70ce26a8f0298a32e3a55037fc3028a2e2a7 Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Diffstat (limited to 'opengl/system')
-rw-r--r--opengl/system/gralloc/gralloc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/system/gralloc/gralloc.cpp b/opengl/system/gralloc/gralloc.cpp
index 2bdf8da..f6f448c 100644
--- a/opengl/system/gralloc/gralloc.cpp
+++ b/opengl/system/gralloc/gralloc.cpp
@@ -1028,7 +1028,11 @@ fallback_init(void)
return;
}
ALOGD("Emulator without GPU emulation detected.");
+#if __LP64__
+ module = dlopen("/system/lib64/hw/gralloc.default.so", RTLD_LAZY|RTLD_LOCAL);
+#else
module = dlopen("/system/lib/hw/gralloc.default.so", RTLD_LAZY|RTLD_LOCAL);
+#endif
if (module != NULL) {
sFallback = reinterpret_cast<gralloc_module_t*>(dlsym(module, HAL_MODULE_INFO_SYM_AS_STR));
if (sFallback == NULL) {