Merge "libhwcomposer: libgralloc Set MDP_SMP_FORCE_ALLOC flag"

This commit is contained in:
Linux Build Service Account
2014-11-09 23:41:33 -08:00
committed by Gerrit - the friendly Code Review server
7 changed files with 28 additions and 6 deletions

View File

@@ -296,6 +296,7 @@ int IonController::allocate(alloc_data& data, int usage)
// for targets/OEMs which do not need HW level protection
// do not set ion secure flag & MM heap. Fallback to IOMMU heap.
ionFlags |= ION_HEAP(ION_IOMMU_HEAP_ID);
data.allocType |= private_handle_t::PRIV_FLAGS_PROTECTED_BUFFER;
}
} else if(usage & GRALLOC_USAGE_PRIVATE_MM_HEAP) {
//MM Heap is exclusively a secure heap.