libhwcomposer: libgralloc Set MDP_SMP_FORCE_ALLOC flag
For PROTECTED but NON SECURE layers set MDP_SMP_FORCE_ALLOC flag to allow SMP allocation and prevent GPU fallback In Such cases if video resolution changes dynamically it fails to display layer due to GPU fallback. Use this flag for FB layer composition and depricate MDP_BACKEND_COMPOSITION flag. Change-Id: I9ab7cbdd2e12b56dfa67d5b4b3ff6b2dcd0096be
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
a2b4df7ac4
commit
d616660fe6
@@ -294,6 +294,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.
|
||||
|
||||
Reference in New Issue
Block a user