mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[allocator]: force using drm allocator in Linux platform
The buffer management system still have a problem with different memory type, I have to fake the drm buffer as the ion buffer this time. Change-Id: I57d972d45419caeaf0f086372d1ecd0c8dd9b9f5 Signed-off-by: Randy Li <randy.li@rock-chips.com> Signed-off-by: leo.ding <leo.ding@rock-chips.com>
This commit is contained in:
@@ -35,7 +35,11 @@ MPP_RET os_allocator_get(os_allocator *api, MppBufferType type)
|
||||
} break;
|
||||
case MPP_BUFFER_TYPE_ION : {
|
||||
#ifdef RKPLATFORM
|
||||
#ifdef HAVE_DRM
|
||||
*api = allocator_drm;
|
||||
#else
|
||||
*api = allocator_ion;
|
||||
#endif
|
||||
#else
|
||||
*api = allocator_std;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user