gralloc: Send first 2 FB buffers to carveout and next to IOMMU
Gralloc uses the GRALLOC_USAGE_HW_FB flag to allocate memory from carveout. This is fine for primary framebuffer, but for external framebuffer we need IOMMU heap buffers, since the ioctls for external work with those. Ideally, the primary buffers also need to come from IOMMU heap, which is ongoing work. This patch allocates the first 2 FB buffer requests (assuming they are for primary) from carveout and allocates all subsequent buffers from IOMMU heap. Bug: 7124159 Change-Id: Ie53b2e1e7fcac136acd2d251f39cefe367fc7125 Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
committed by
Iliyan Malchev
parent
32aa90fc54
commit
d80a52cbf9
@@ -322,7 +322,7 @@ int mapFrameBufferLocked(struct private_module_t* module)
|
||||
*/
|
||||
|
||||
int err;
|
||||
module->numBuffers = info.yres_virtual / info.yres;
|
||||
module->numBuffers = 2;
|
||||
module->bufferMask = 0;
|
||||
//adreno needs page aligned offsets. Align the fbsize to pagesize.
|
||||
size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres)*
|
||||
|
||||
Reference in New Issue
Block a user