gfx: drv: Fix swap interval 0 page flipping
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 29 Mar 2012 18:14:15 +0000 (21:14 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:30:50 +0000 (12:30 +0300)
commit3610a365da9c7b73154806cf165b7bc4c7f8be59
tree28d8f59f26b7e8e86a752d53093b88a68866aa8e
parent173357f8c467b9d9963769eff1760a5eb21702af
gfx: drv: Fix swap interval 0 page flipping

When issuing flips faster than the screen refresh rate, swap the
previous mem infos around for the current and previous flip. This
causes the completion of the previous flip to incement the completed
read ops counter of the previous flip's front buffer instead
of the current scanout buffer. Any new rendering targeting the
scanout buffer will thus be blocked until the next vblank occurs.

Issue: ANDROID-2373
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/staging/mrst/drv/mdfld_overlay.c
drivers/staging/mrst/drv/psb_page_flip.c