gralloc: Fix incorrect flag usage on old ion API
The secure flag gets sent only with the new ION API Change-Id: Ia649500474b0c8384f4b45d599fcff54644005aa
This commit is contained in:
@@ -85,11 +85,11 @@ int IonAlloc::alloc_buffer(alloc_data& data)
|
||||
#else
|
||||
ionAllocData.heap_mask = data.flags & ~ION_SECURE;
|
||||
ionAllocData.flags = data.uncached ? 0 : ION_FLAG_CACHED;
|
||||
#endif
|
||||
// ToDo: replace usage of alloc data structure with
|
||||
// ionallocdata structure.
|
||||
if (data.flags & ION_SECURE)
|
||||
ionAllocData.flags |= ION_SECURE;
|
||||
#endif
|
||||
|
||||
err = open_device();
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user