]> git.karo-electronics.de Git - linux-beck.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)
commit828ed3e1703a2323250f4acdac34f79fd27364d9
tree65cf9e63055d40673d634ab260593c1be26aabc0
parent083f9560cdff268e2ca82dc90ba9c509742359b8
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