If we don't have the right extension for age we probably don't have
partial updates either. The code to get the age calculations right is
actually much nastier than this anyway since gbm can hand back buffers
in arbitrary order, and as many as it feels like.
Change-Id: I22ecdfcf18e5bff5b955fc51936431b7bb4d882c
else if ((ob->swap_mode != MODE_AUTO) &&
(ob->swap_mode != MODE_FULL))
{
- int delta;
-
- delta = (ob->priv.last - ob->priv.curr +
- (ob->priv.last > ob->priv.last ?
- 0 : ob->priv.num)) % ob->priv.num;
-
- switch (delta)
- {
- case 0:
- return MODE_COPY;
- case 1:
- return MODE_DOUBLE;
- case 2:
- return MODE_TRIPLE;
- case 3:
- return MODE_QUADRUPLE;
- default:
- return MODE_FULL;
- }
+ return MODE_FULL;
}
return ob->swap_mode;