summaryrefslogtreecommitdiffstats
path: root/opengl/system/gralloc
diff options
context:
space:
mode:
authorTina Zhang <tina.zhang@intel.com>2014-03-21 08:14:41 +0800
committerTina Zhang <tina.zhang@intel.com>2014-04-09 12:49:43 +0800
commitaedc716648071a1403f4ac92a380d1d4a5377052 (patch)
tree125297d1b2cd5f943357254d56f2c150f119db8e /opengl/system/gralloc
parentaedf829a920c3100de5caa49b0dec02d66eed96b (diff)
downloadandroid_device_generic_goldfish-aedc716648071a1403f4ac92a380d1d4a5377052.tar.gz
android_device_generic_goldfish-aedc716648071a1403f4ac92a380d1d4a5377052.tar.bz2
android_device_generic_goldfish-aedc716648071a1403f4ac92a380d1d4a5377052.zip
Support GLES acceleration in 64bit emulator on device side
Support both 32bit and 64bit emulator GLES acceleration. Change-Id: Ibd8b970d23937ae40732324706074ff00f433a14 Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Diffstat (limited to 'opengl/system/gralloc')
-rw-r--r--opengl/system/gralloc/gralloc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/opengl/system/gralloc/gralloc.cpp b/opengl/system/gralloc/gralloc.cpp
index 75909bd..2bdf8da 100644
--- a/opengl/system/gralloc/gralloc.cpp
+++ b/opengl/system/gralloc/gralloc.cpp
@@ -446,7 +446,7 @@ static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer)
DEFINE_AND_VALIDATE_HOST_CONNECTION;
// increment the post count of the buffer
- uint32_t *postCountPtr = (uint32_t *)cb->ashmemBase;
+ intptr_t *postCountPtr = (intptr_t *)cb->ashmemBase;
if (!postCountPtr) {
// This should not happen
return -EINVAL;
@@ -638,7 +638,7 @@ static int gralloc_lock(gralloc_module_t const* module,
return -EINVAL;
}
- EGLint postCount = 0;
+ intptr_t postCount = 0;
void *cpu_addr = NULL;
//
@@ -652,8 +652,8 @@ static int gralloc_lock(gralloc_module_t const* module,
}
if (cb->canBePosted()) {
- postCount = *((int *)cb->ashmemBase);
- cpu_addr = (void *)(cb->ashmemBase + sizeof(int));
+ postCount = *((intptr_t *)cb->ashmemBase);
+ cpu_addr = (void *)(cb->ashmemBase + sizeof(intptr_t));
}
else {
cpu_addr = (void *)(cb->ashmemBase);