libhwcomposer: Add support for 4 layer MDP Comp
This change extends MDP composition to support upto 4 layers by making border fill as base pipe and using all MDP h/w pipes in overlay mode. Conflicts: libhwcomposer/hwc.cpp libhwcomposer/hwc_utils.cpp libhwcomposer/hwc_utils.h Bug: 7626586 Change-Id: I01a0e53ddfbcf3ed46734f6f3bb0ef7d912ceac6 Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org> Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
@@ -108,10 +108,11 @@ static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer)
|
||||
private_module_t* m =
|
||||
reinterpret_cast<private_module_t*>(dev->common.module);
|
||||
|
||||
if (hnd && hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
|
||||
if (hnd) {
|
||||
m->info.activate = FB_ACTIVATE_VBL | FB_ACTIVATE_FORCE;
|
||||
m->info.yoffset = hnd->offset / m->finfo.line_length;
|
||||
m->commit.var = m->info;
|
||||
m->commit.flags |= MDP_DISPLAY_COMMIT_OVERLAY;
|
||||
if (ioctl(m->framebuffer->fd, MSMFB_DISPLAY_COMMIT, &m->commit) == -1) {
|
||||
ALOGE("%s: MSMFB_DISPLAY_COMMIT ioctl failed, err: %s", __FUNCTION__,
|
||||
strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user