mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[osal]: force mpp use drm buffer when HAVE_DRM are defined.
Force allocator use drm buffer,otherwise user will get a tuntime error when they use kernel without /dev/ion. Change-Id: I8151b743a9b19a03716dec3bdb909ce91b6af0b6 Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
This commit is contained in:
@@ -30,7 +30,11 @@ MPP_RET os_allocator_get(os_allocator *api, MppBufferType type)
|
||||
}
|
||||
break;
|
||||
case MPP_BUFFER_TYPE_ION : {
|
||||
#ifdef HAVE_DRM
|
||||
*api = allocator_drm;
|
||||
#else
|
||||
*api = allocator_ion;
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case MPP_BUFFER_TYPE_DRM : {
|
||||
|
Reference in New Issue
Block a user