gralloc: Fix heap_id_mask
heap_mask has changed to heap_id_mask in newer ion headers. Change-Id: I605ea81a59660e1aaae2e688dca5fa27c74e79a8
This commit is contained in:
@@ -73,7 +73,11 @@ int IonAlloc::alloc_buffer(alloc_data& data)
|
||||
|
||||
ionAllocData.len = data.size;
|
||||
ionAllocData.align = data.align;
|
||||
#ifdef QCOM_BSP
|
||||
ionAllocData.heap_mask = data.flags & ~ION_SECURE;
|
||||
#else
|
||||
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
|
||||
#endif
|
||||
ionAllocData.flags = data.uncached ? 0 : ION_FLAG_CACHED;
|
||||
// ToDo: replace usage of alloc data structure with
|
||||
// ionallocdata structure.
|
||||
|
||||
Reference in New Issue
Block a user