drm/i915: fix pipe source image setting in flip command
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 9 Feb 2010 01:46:20 +0000 (09:46 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 10 Feb 2010 22:50:38 +0000 (14:50 -0800)
commitaacef09b59e99d9e919ede74d107d5d7f3721432
tree2ba8295c11fd792bf813d047376a434feb8ce911
parentf072d2e77128c5b332ce217764cf170b660b99dc
drm/i915: fix pipe source image setting in flip command

The MI_DISPLAY_FLIP command needs to be set the same pipe
source image like in pipe source register, e.g source image
size minus one. This fixes screen corrupt issue on Ironlake.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c