hwc: Writeback for ad is needed only for split displays.
Writeback for assertive display feature is needed only for split displays and only if ro.qcom.ad is set to 2 by OEM. This patch removes the unnecessary code and adds the relevant conditional checks for split displays and property value Change-Id: Ic36f28441d1a6e93132316b33fe1cf98a6e1efe4
This commit is contained in:
@@ -1057,13 +1057,6 @@ bool MDPCompNonSplit::draw(hwc_context_t *ctx, hwc_display_contents_1_t* list) {
|
||||
int fd = hnd->fd;
|
||||
uint32_t offset = hnd->offset;
|
||||
|
||||
if(ctx->mAD->isModeOn()) {
|
||||
if(ctx->mAD->draw(ctx, fd, offset)) {
|
||||
fd = ctx->mAD->getDstFd(ctx);
|
||||
offset = ctx->mAD->getDstOffset(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
Rotator *rot = mCurrentFrame.mdpToLayer[mdpIndex].rot;
|
||||
if(rot) {
|
||||
if(!rot->queueBuffer(fd, offset))
|
||||
|
||||
Reference in New Issue
Block a user