gralloc: Fix gralloc protected allocations

Protected allocations need to be uncached and don't need the MM
heap flag set

Change-Id: Ib64169e601af1c70a951a06266e70b4e18fc88f5
This commit is contained in:
Naseer Ahmed
2016-05-03 15:10:23 -04:00
parent b92e73fc10
commit de758fddeb
2 changed files with 5 additions and 7 deletions

View File

@@ -63,8 +63,7 @@ int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage,
else
data.align = getpagesize();
if ((usage & GRALLOC_USAGE_PROTECTED) &&
(usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) {
if (usage & GRALLOC_USAGE_PROTECTED) {
if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) {
/* The alignment here reflects qsee mmu V7L/V8L requirement */
data.align = SZ_2M;