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:
Arun Kumar K.R
2013-05-30 15:18:40 -07:00
committed by Gerrit - the friendly Code Review server
parent 2a0c912658
commit 5a9bc432df

View File

@@ -75,7 +75,9 @@ static bool canFallback(int usage, bool triedSystem)
static bool useUncached(int usage) 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 true;
return false; return false;
} }