libgralloc-qsd8k: Flush ashmem region cache instead of Invalidating it
ashmem ioctl does not allow the ashmem region to be invalidated anymore, so we have to flush the ashmem region instead of simply invalidating it. Change-Id: I912d2cf293e6ad39d40fb04fd0a1d21700a3907b
This commit is contained in:
parent
521f470178
commit
b33d891cf3
@ -291,7 +291,7 @@ int gralloc_unlock(gralloc_module_t const* module,
|
||||
err = ioctl( hnd->fd, PMEM_CLEAN_CACHES, &pmem_addr);
|
||||
} else if ((hnd->flags & private_handle_t::PRIV_FLAGS_USES_ASHMEM)) {
|
||||
unsigned long addr = hnd->base + hnd->offset;
|
||||
err = ioctl(hnd->fd, ASHMEM_CACHE_CLEAN_RANGE, NULL);
|
||||
err = ioctl(hnd->fd, ASHMEM_CACHE_FLUSH_RANGE, NULL);
|
||||
}
|
||||
|
||||
LOGE_IF(err < 0, "cannot flush handle %p (offs=%x len=%x)\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user