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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user