Merge "hwc: In PTOR, offset depends on stride calculated by gralloc"

This commit is contained in:
Linux Build Service Account
2014-07-24 21:52:59 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 10 additions and 5 deletions

View File

@@ -1444,8 +1444,8 @@ int hwc_sync(hwc_context_t *ctx, hwc_display_contents_1_t* list, int dpy,
fd = -1;
}
if (!dpy && ctx->mCopyBit[dpy]) {
if (ctx->mPtorInfo.isActive())
if (ctx->mCopyBit[dpy]) {
if (!dpy && ctx->mPtorInfo.isActive())
ctx->mCopyBit[dpy]->setReleaseFdSync(releaseFd);
else
ctx->mCopyBit[dpy]->setReleaseFd(releaseFd);