aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGowtham Tammana <g-tammana@ti.com>2016-11-04 15:39:45 -0500
committerVishal Mahaveer <vishalm@ti.com>2017-01-19 15:23:01 -0500
commit83db16e17dfbe5846f34eca0c00b182c6231834f (patch)
treec9c335b6b03375d3f108f983ed88addbe8b28ba1
parent5fd7da53b505e1bc80a0c9d116fe31e5cd177d74 (diff)
downloaddce-83db16e17dfbe5846f34eca0c00b182c6231834f.tar.gz
memplugin android: Add SCANOUT flag to allocations
Add OMAP_BO_SCANOUT flags to `omap_bo` buffer allocations to explicitly request from contiguous region. Change-Id: Ifb6f8780608183cf9f5b636f885d408b01146d31 Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
-rw-r--r--memplugin_android.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/memplugin_android.c b/memplugin_android.c
index b140aa5..6807da9 100644
--- a/memplugin_android.c
+++ b/memplugin_android.c
@@ -114,7 +114,8 @@ int memplugin_close()
void *memplugin_alloc(int sz, int height, MemRegion region, int align, int flags)
{
MemHeader *h = NULL;
- struct omap_bo *bo = omap_bo_new(OmapDev, sz + sizeof(MemHeader), OMAP_BO_WC);
+ struct omap_bo *bo = omap_bo_new(OmapDev, sz + sizeof(MemHeader),
+ OMAP_BO_WC | OMAP_BO_SCANOUT);
if( !bo ) {
return (NULL);
@@ -172,7 +173,8 @@ void *memplugin_alloc_noheader(MemHeader *memHdr, int sz, int height, MemRegion
if (!memHdr)
return NULL;
- struct omap_bo *bo = omap_bo_new(OmapDev, sz, OMAP_BO_WC);
+ struct omap_bo *bo = omap_bo_new(OmapDev, sz,
+ OMAP_BO_WC | OMAP_BO_SCANOUT);
if( !bo ) {
return (NULL);