]> 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)
commit400aa682f310341aac32438c49468a305e3e1808
tree65cf9e63055d40673d634ab260593c1be26aabc0
parente5fc6eaa52dd92a5739579b3cf0d885cde9bc5cc
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