drm/i915: handle shared framebuffers when flipping
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 23 Jul 2010 19:03:37 +0000 (12:03 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 26 Jul 2010 17:45:55 +0000 (10:45 -0700)
commitbe9a3dbf65a69933b06011f049b1e2fdfa6bc8b9
treeb6f127f19fc374bbdf8932b945c65f2a86d00703
parent6f772d7e2f4105470b9f3d0f0b26f06f61b1278d
drm/i915: handle shared framebuffers when flipping

If a framebuffer is shared across CRTCs, the x,y position of one of them
is likely to be something other than the origin (e.g. for extended
desktop configs).  So calculate the offset at flip time so such
configurations can work.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=28518.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Tested-by: Thomas M. <tmezzadra@gmail.com>
Tested-by: fangxun <xunx.fang@intel.com>
Cc: stable@kernel.org
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c