gralloc: Allow temporary buffer to choose to be cached
The flag GRALLOC_USAGE_PRIVATE_UNCACHED can be set in the usage to allow it to be uncached. If not set, the buffer will be cached by default. CRs-fixed: 341196 (cherry picked from commit 6232816aadd311dbb57b714c7c0a4073d3ddc7f7) Change-Id: Ic10677d105328702972dd69581b919c984d17fe9
This commit is contained in:
parent
840a257b9e
commit
c92339fb57
@ -412,7 +412,7 @@ int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage)
|
||||
data.offset = 0;
|
||||
data.size = getBufferSizeAndDimensions(w, h, format, alignedw, alignedh);
|
||||
data.align = getpagesize();
|
||||
data.uncached = true;
|
||||
data.uncached = useUncached(usage);
|
||||
int allocFlags = usage;
|
||||
|
||||
int err = sAlloc->allocate(data, allocFlags, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user