diff options
author | SeYeong Byeon <sy.byeon@samsung.com> | 2020-10-15 16:20:35 +0900 |
---|---|---|
committer | Ankit Goyal <layog@google.com> | 2020-12-21 15:55:18 +0800 |
commit | 6bcc7aa8979fb2b4e4f3ee34c52fb20c93a064e3 (patch) | |
tree | 7684a6712cb78a88d31ec142ec6a0efe949a26a4 /gralloc4/src/allocator/mali_gralloc_ion.cpp | |
parent | 0fddf7d4a323917438f2fa475e25e0f0fccf1336 (diff) |
gralloc4: disable ion sync
Bug: 173320140
Test: Builds successfully with gralloc3 and gralloc4
Test: Device boots to home with gralloc3
Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com>
Change-Id: I6cb7e62c713ac234ec72218493eb1d8b2665cad9
Diffstat (limited to 'gralloc4/src/allocator/mali_gralloc_ion.cpp')
-rw-r--r-- | gralloc4/src/allocator/mali_gralloc_ion.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gralloc4/src/allocator/mali_gralloc_ion.cpp b/gralloc4/src/allocator/mali_gralloc_ion.cpp index d53664d..9c8fafc 100644 --- a/gralloc4/src/allocator/mali_gralloc_ion.cpp +++ b/gralloc4/src/allocator/mali_gralloc_ion.cpp @@ -278,9 +278,9 @@ int ion_device::open_and_query_ion() } static int mali_gralloc_ion_sync(const private_handle_t * const hnd, - const bool read, - const bool write, - const bool start) + const bool /* read */, + const bool /* write */, + const bool /* start */) { int ret = 0; @@ -289,6 +289,8 @@ static int mali_gralloc_ion_sync(const private_handle_t * const hnd, return -EINVAL; } + return 0; +#if defined(GRALLOC_ION_SYNC_ON_LOCK) && GRALLOC_ION_SYNC_ON_LOCK == 1 ion_device *dev = ion_device::get(); int direction = 0; @@ -314,6 +316,7 @@ static int mali_gralloc_ion_sync(const private_handle_t * const hnd, } return ret; +#endif } |