gralloc: Allow IOMMU memory to be uncached
The IOMMU heap can give us uncached memory, so remove this erroneous check. Change-Id: Ie141c55821221a1c2f75b7cf2248794d93ea6c6a
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
db770e203f
commit
2ea027b04c
@@ -76,8 +76,7 @@ static bool canFallback(int usage, bool triedSystem)
|
||||
static bool useUncached(int usage)
|
||||
{
|
||||
// System heaps cannot be uncached
|
||||
if(usage & (GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP |
|
||||
GRALLOC_USAGE_PRIVATE_IOMMU_HEAP))
|
||||
if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP)
|
||||
return false;
|
||||
if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user