* commit '423b40f7bd004a8ab5bca887e3855cd20c6bcc28': SF: Always perform sideband transactions
This commit is contained in:
commit
c7a3cd6228
@ -918,7 +918,7 @@ uint32_t Layer::doTransaction(uint32_t flags) {
|
|||||||
const bool resizePending = (c.requested.w != c.active.w) ||
|
const bool resizePending = (c.requested.w != c.active.w) ||
|
||||||
(c.requested.h != c.active.h);
|
(c.requested.h != c.active.h);
|
||||||
|
|
||||||
if (resizePending) {
|
if (resizePending && mSidebandStream == NULL) {
|
||||||
// don't let Layer::doTransaction update the drawing state
|
// don't let Layer::doTransaction update the drawing state
|
||||||
// if we have a pending resize, unless we are in fixed-size mode.
|
// if we have a pending resize, unless we are in fixed-size mode.
|
||||||
// the drawing state will be updated only once we receive a buffer
|
// the drawing state will be updated only once we receive a buffer
|
||||||
@ -927,6 +927,10 @@ uint32_t Layer::doTransaction(uint32_t flags) {
|
|||||||
// in particular, we want to make sure the clip (which is part
|
// in particular, we want to make sure the clip (which is part
|
||||||
// of the geometry state) is latched together with the size but is
|
// of the geometry state) is latched together with the size but is
|
||||||
// latched immediately when no resizing is involved.
|
// latched immediately when no resizing is involved.
|
||||||
|
//
|
||||||
|
// If a sideband stream is attached, however, we want to skip this
|
||||||
|
// optimization so that transactions aren't missed when a buffer
|
||||||
|
// never arrives
|
||||||
|
|
||||||
flags |= eDontUpdateGeometryState;
|
flags |= eDontUpdateGeometryState;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user