summaryrefslogtreecommitdiff
authorStark Li <stark.li@amlogic.com>2017-04-07 05:15:36 (GMT)
committer Stark Li <stark.li@amlogic.com>2017-04-07 05:36:58 (GMT)
commitc625b94f86a68fbb78f33b6d3d944f28eab53582 (patch)
treeb7098408a1ddcb2d54259a4e4a2be73c340cfdef
parent1eb1ef91a2f2c63620c6bca10cb574b7df976bc3 (diff)
downloadgralloc-c625b94f86a68fbb78f33b6d3d944f28eab53582.zip
gralloc-c625b94f86a68fbb78f33b6d3d944f28eab53582.tar.gz
gralloc-c625b94f86a68fbb78f33b6d3d944f28eab53582.tar.bz2
PD#140524: fix layer continus flag should be true when DMA buffer usage is exist.
Change-Id: Ife2cd2249f6dfa696124691ed589e101dfdbd93d
Diffstat
-rw-r--r--alloc_ion.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/alloc_ion.cpp b/alloc_ion.cpp
index 253732a..0392f1d 100644
--- a/alloc_ion.cpp
+++ b/alloc_ion.cpp
@@ -103,6 +103,11 @@ int alloc_backend_alloc(alloc_device_t* dev, size_t size, int usage, buffer_hand
ret = ion_alloc(m->ion_client, size, 0,
1<<ION_HEAP_TYPE_CUSTOM, ion_flags, &ion_hnd);
}
+#ifdef GRALLOC_APP_ALLOC_CONTINUOUS_BUF
+ if (ret == 0) {
+ layerAllocContinousBuf = true;
+ }
+#endif
}
#ifdef GRALLOC_APP_ALLOC_CONTINUOUS_BUF
else if (usage & GRALLOC_USAGE_HW_COMPOSER