libgralloc: Allow USAGE_RARELY flags to be uncached
Allow GRALLOC_USAGE_SW_READ_RARELY and GRALLOC_USAGE_SW_WRITE_RARELY flags to be uncached. Change-Id: I014d659e5d5465c6a27aa3979d52cbf3f7c14024
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
2a0c912658
commit
5a9bc432df
@@ -75,7 +75,9 @@ static bool canFallback(int usage, bool triedSystem)
|
||||
|
||||
static bool useUncached(int usage)
|
||||
{
|
||||
if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED)
|
||||
if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED ||
|
||||
usage & GRALLOC_USAGE_SW_WRITE_RARELY ||
|
||||
usage & GRALLOC_USAGE_SW_READ_RARELY)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user