aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuddy Liong2015-04-09 12:40:16 -0500
committerBuddy Liong2015-04-21 10:01:18 -0500
commit7345eec3dfe9cd5d255703aef881c2d08a99a8a3 (patch)
treecd59cc5446b6d9f1fa6485899e05221603f1434d /memplugin.h
parentf8df435c9936f632c4aea63316eafa569bcbbc52 (diff)
downloadrepo-libdce-7345eec3dfe9cd5d255703aef881c2d08a99a8a3.tar.gz
repo-libdce-7345eec3dfe9cd5d255703aef881c2d08a99a8a3.tar.xz
repo-libdce-7345eec3dfe9cd5d255703aef881c2d08a99a8a3.zip
[QNX] Remove dependency on QNX TILER for memory allocation
Previously dce_alloc() call will always reserve the memory from QNX TILER 1D. The same case happens when it calls memplugin_alloc since the definition of DEFAULT_REGION is set to MEM_TILER_1D for QNX. Since there is a known issue of DMA lockup due to MPU side performing memory copy into the TILER memory, this patch limits the use of QNX TILER. With this patch, dce_test and dce_enc_test can be executed without QNX TILER allocation. DCE test apps are also updated to allocate the memory through shmemallocator instead of QNX TILER. The capability to: allocate TILER output buffer for decoder and allocate TILER input buffer and output buffer for encoder are still existed as part of the dce_test or dce_enc_test input parameter 'tiler' vs 'nontiler' Change-Id: I33e2a9dd83c791cc2621e548628715abaeae871d Signed-off-by: Buddy Liong <buddy.budiono@ti.com>
Diffstat (limited to 'memplugin.h')
-rw-r--r--memplugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/memplugin.h b/memplugin.h
index 0073cf1..26562e3 100644
--- a/memplugin.h
+++ b/memplugin.h
@@ -49,7 +49,7 @@
49#include <tilermem.h> 49#include <tilermem.h>
50#include <SharedMemoryAllocatorUsr.h> 50#include <SharedMemoryAllocatorUsr.h>
51#include <memmgr.h> 51#include <memmgr.h>
52#define DEFAULT_REGION MEM_TILER_1D 52#define DEFAULT_REGION MEM_SHARED
53 53
54#elif defined (BUILDOS_ANDROID) 54#elif defined (BUILDOS_ANDROID)
55#define DEFAULT_REGION MEM_CARVEOUT 55#define DEFAULT_REGION MEM_CARVEOUT