hikey960: gralloc960: Tweak allocation so every HWC allocation doesn't come out of cma
Since we only need CMA for the HW_FB, don't use CMA for
every buffer, as otherwise we fragment and run out of
CMA space fairly quickly.
Change-Id: I3f274fa4ac4a47e80f2cb350675c197222a92a88
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/gralloc960/mali_gralloc_ion.cpp b/gralloc960/mali_gralloc_ion.cpp
index ccc7e49..d051054 100644
--- a/gralloc960/mali_gralloc_ion.cpp
+++ b/gralloc960/mali_gralloc_ion.cpp
@@ -274,7 +274,7 @@
}
#elif defined(ION_HEAP_TYPE_DMA_MASK) && GRALLOC_USE_ION_DMA_HEAP
- else if (!(usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) && (usage & (GRALLOC_USAGE_HW_FB | GRALLOC_USAGE_HW_COMPOSER)))
+ else if (!(usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) && (usage & (GRALLOC_USAGE_HW_FB)))
{
heap_mask = ION_HEAP_TYPE_DMA_MASK;
}