]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/sprite: Avoid incurring extra vblank stall when updating plane on IVB
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Apr 2012 16:12:26 +0000 (17:12 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:17:59 +0000 (11:17 +0200)
commit6da10bc5ac962f055058869677a7a1648bbf4603
tree65cf9e63055d40673d634ab260593c1be26aabc0
parent15ad4a9d10344a45fdd730d46b7337c505e2710d
drm/i915/sprite: Avoid incurring extra vblank stall when updating plane on IVB

IvyBridge requires an extra frame between disabling the low power
watermarks and enabling scaling on the sprite plane. If the scaling
is already enabled, then we have already disabled the low power
watermarks and need not incur an extra wait.

Similarly, as we disable the scaling when turning off the sprite plane,
we can update the scaling enabled flag and restore the low power
watermarks.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sprite.c