]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Perform intel_enable_fbc() from a delayed task
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Jul 2011 11:22:42 +0000 (12:22 +0100)
committerKeith Packard <keithp@keithp.com>
Fri, 8 Jul 2011 17:23:17 +0000 (10:23 -0700)
commitd74bd7614c8f74dcd8f0897a1b715324e943a842
tree54b122ad648f655b6f9db1012bad3a9996b161ea
parent6ab00c2557192b7702c15b9d14525ff7d16f972b
drm/i915: Perform intel_enable_fbc() from a delayed task

In order to accommodate the requirements of re-enabling FBC after
page-flipping, but to avoid doing so and incurring the cost of a wait
for vblank in the middle of a page-flip sequence, we defer the actual
enablement by 50ms. If any request to disable FBC arrive within that
interval, the enablement is cancelled and we are saved from blocking on
the wait.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h