[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:
Randy Li
2017-02-09 09:40:02 +08:00
committed by Herman Chen
parent 3caf8d8738
commit 0aa2191f26

View File

@@ -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