mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[alloctor]: add flags for alloctor
Each of the different alloctor has different alloctor modes, such as allocating physical continuous memory, secure memory, etc. Change-Id: Ib032689f0cfd36b494843dcc176a22c6c9587b6a Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
This commit is contained in:
@@ -267,7 +267,7 @@ static RK_S32 ion_heap_id = -1;
|
||||
static RK_U32 ion_heap_mask = ION_HEAP_SYSTEM_MASK;
|
||||
static pthread_mutex_t lock;
|
||||
|
||||
static MPP_RET allocator_ion_open(void **ctx, size_t alignment)
|
||||
static MPP_RET allocator_ion_open(void **ctx, MppAllocatorCfg *cfg)
|
||||
{
|
||||
RK_S32 fd;
|
||||
allocator_ctx_ion *p;
|
||||
@@ -329,7 +329,7 @@ static MPP_RET allocator_ion_open(void **ctx, size_t alignment)
|
||||
mpp_log("using ion heap %s\n", heap_name);
|
||||
}
|
||||
pthread_mutex_unlock(&lock);
|
||||
p->alignment = alignment;
|
||||
p->alignment = cfg->alignment;
|
||||
p->ion_device = fd;
|
||||
*ctx = p;
|
||||
}
|
||||
|
Reference in New Issue
Block a user