summaryrefslogtreecommitdiff
path: root/gralloc4/src/allocator
diff options
context:
space:
mode:
authorHridya Valsaraju <hridya@google.com>2021-01-29 16:09:42 -0800
committerHridya Valsaraju <hridya@google.com>2021-02-02 15:41:20 -0800
commitc63d3b9bb8964c0ba2335bcdd1c7e9b324c84c5a (patch)
treee2f81a146a8b5f3e4e6d07064b0080a7e50b62c3 /gralloc4/src/allocator
parentab0bf390c52012f85fd86b081f341b6ab17f377e (diff)
downloadgchips-c63d3b9bb8964c0ba2335bcdd1c7e9b324c84c5a.tar.gz
gralloc4: Remove references to unused ION flags
These flags are not supported by the device's ION heap implementation. Hence, references to them can be deleted here. Test: boot, video playback Bug: 170772980 Change-Id: I3f51a20562e58809f51f4e42f803a002e32bf4fd
Diffstat (limited to 'gralloc4/src/allocator')
-rw-r--r--gralloc4/src/allocator/mali_gralloc_ion.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/gralloc4/src/allocator/mali_gralloc_ion.cpp b/gralloc4/src/allocator/mali_gralloc_ion.cpp
index 91c36d9..0d38e04 100644
--- a/gralloc4/src/allocator/mali_gralloc_ion.cpp
+++ b/gralloc4/src/allocator/mali_gralloc_ion.cpp
@@ -165,22 +165,7 @@ static void set_ion_flags(uint64_t usage, unsigned int *ion_flags)
if ((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_OFTEN)
{
- *ion_flags |= ION_FLAG_CACHED | ION_FLAG_CACHED_NEEDS_SYNC;
-
- if (usage & GRALLOC_USAGE_HW_RENDER)
- {
- *ion_flags |= ION_FLAG_SYNC_FORCE;
- }
- }
-
- if (usage & (GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE))
- {
- *ion_flags |= ION_FLAG_MAY_HWRENDER;
- }
-
- if (usage & GRALLOC_USAGE_NOZEROED)
- {
- *ion_flags |= ION_FLAG_NOZEROED;
+ *ion_flags |= ION_FLAG_CACHED;
}
/* TODO: does not seem to be used anymore. But check again to make sure */