diff options
author | Gowtham Tammana | 2016-11-04 15:39:45 -0500 |
---|---|---|
committer | Vishal Mahaveer | 2017-01-19 14:23:01 -0600 |
commit | 83db16e17dfbe5846f34eca0c00b182c6231834f (patch) | |
tree | c9c335b6b03375d3f108f983ed88addbe8b28ba1 | |
parent | 5fd7da53b505e1bc80a0c9d116fe31e5cd177d74 (diff) | |
download | repo-libdce-83db16e17dfbe5846f34eca0c00b182c6231834f.tar.gz repo-libdce-83db16e17dfbe5846f34eca0c00b182c6231834f.tar.xz repo-libdce-83db16e17dfbe5846f34eca0c00b182c6231834f.zip |
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.c | 6 |
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() | |||
114 | void *memplugin_alloc(int sz, int height, MemRegion region, int align, int flags) | 114 | void *memplugin_alloc(int sz, int height, MemRegion region, int align, int flags) |
115 | { | 115 | { |
116 | MemHeader *h = NULL; | 116 | MemHeader *h = NULL; |
117 | struct omap_bo *bo = omap_bo_new(OmapDev, sz + sizeof(MemHeader), OMAP_BO_WC); | 117 | struct omap_bo *bo = omap_bo_new(OmapDev, sz + sizeof(MemHeader), |
118 | OMAP_BO_WC | OMAP_BO_SCANOUT); | ||
118 | 119 | ||
119 | if( !bo ) { | 120 | if( !bo ) { |
120 | return (NULL); | 121 | return (NULL); |
@@ -172,7 +173,8 @@ void *memplugin_alloc_noheader(MemHeader *memHdr, int sz, int height, MemRegion | |||
172 | if (!memHdr) | 173 | if (!memHdr) |
173 | return NULL; | 174 | return NULL; |
174 | 175 | ||
175 | struct omap_bo *bo = omap_bo_new(OmapDev, sz, OMAP_BO_WC); | 176 | struct omap_bo *bo = omap_bo_new(OmapDev, sz, |
177 | OMAP_BO_WC | OMAP_BO_SCANOUT); | ||
176 | 178 | ||
177 | if( !bo ) { | 179 | if( !bo ) { |
178 | return (NULL); | 180 | return (NULL); |