drm/i915: Fix offset page-flips on i965+
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 8 Aug 2010 09:15:59 +0000 (10:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Sep 2010 10:13:00 +0000 (11:13 +0100)
commit52e68630d13f9668f8f4dd6978fa41039bacfaf6
treeca2b2b88d5f09592c35553b1802f6c8c6204ac5a
parentc96c3a8cb7fadcb33d9a5ebe35fcee8b7d0a7946
drm/i915: Fix offset page-flips on i965+

i965 uses the Display Registers to compute the offset from the display
base so the new base does not need adjusting when flipping. The older
chipsets use a fence to access the display and so do perceive the
surface as linear and have a single base register which is reprogrammed
using the flip.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reported-by: Marty Jack <martyj19@comcast.net>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/intel_display.c