Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From be4d9e40b38467adeb017751cd1659ad2f031153 Mon Sep 17 00:00:00 2001
- From: Thecrazyskull <anaskarbila@gmail.com>
- Date: Sun, 11 Oct 2015 10:24:15 +0200
- Subject: [PATCH] gralloc: Force old Gralloc API
- Signed-off-by: Thecrazyskull <anaskarbila@gmail.com>
- ---
- libgralloc/ionalloc.cpp | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
- diff --git a/libgralloc/ionalloc.cpp b/libgralloc/ionalloc.cpp
- index 23e225d..e6ac5b5 100644
- --- a/libgralloc/ionalloc.cpp
- +++ b/libgralloc/ionalloc.cpp
- @@ -76,7 +76,9 @@ int IonAlloc::alloc_buffer(alloc_data& data)
- ionAllocData.len = data.size;
- ionAllocData.align = data.align;
- - ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
- + ionAllocData.heap_mask = data.flags & ~ION_SECURE;
- +// ToDo: Fix this
- +// ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
- ionAllocData.flags = data.uncached ? 0 : ION_FLAG_CACHED;
- // ToDo: replace usage of alloc data structure with
- // ionallocdata structure.
- --
- 2.1.4
- (END)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement