summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShilin Victor <radicaldreamer00001@gmail.com>2019-04-10 17:25:49 +0300
committerShilin Victor <radicaldreamer00001@gmail.com>2019-04-10 17:48:45 +0300
commitdf2c4b6c508650fe419e6b138eab3ea87b9f3a31 (patch)
tree8fea8e4c32c1cf5af7df5958f7c03d5f0611edf4
parentd8678c1bc27df4b029319fac55005d8ea133c51d (diff)
downloadhardware_samsung-lineage-16.0.tar.gz
hardware_samsung-lineage-16.0.tar.bz2
hardware_samsung-lineage-16.0.zip
exynos4: add PRIV_FLAGS_USES_ION flag when allocating with IONHEADlineage-16.0
Change-Id: Idac09003978e5c365ddd1678130a2dfbd3b6870f
-rw-r--r--exynos4/hal/libgralloc_ump/alloc_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos4/hal/libgralloc_ump/alloc_device.cpp b/exynos4/hal/libgralloc_ump/alloc_device.cpp
index f0b5b12..538c006 100644
--- a/exynos4/hal/libgralloc_ump/alloc_device.cpp
+++ b/exynos4/hal/libgralloc_ump/alloc_device.cpp
@@ -299,7 +299,7 @@ static int gralloc_alloc_buffer(alloc_device_t* dev, size_t size, int usage,
if (usage & (GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE |
GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_SW_READ_OFTEN)) {
ALOGD_IF(debug_level > 0, "%s: Allocating graphicbuffer via ION...", __func__);
- priv_alloc_flag = priv_alloc_flag | private_handle_t::PRIV_FLAGS_GRAPHICBUFFER;
+ priv_alloc_flag = priv_alloc_flag | private_handle_t::PRIV_FLAGS_GRAPHICBUFFER | private_handle_t::PRIV_FLAGS_USES_ION;
ret = gralloc_alloc_ion(dev, size, usage, format, &ion_fd, &ion_paddr, &priv_alloc_flag, &ump_mem_handle);
}