]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: handle shared framebuffers when flipping
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 23 Jul 2010 19:03:37 +0000 (12:03 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:04 +0000 (10:30 -0700)
commit2ab40331614a9d8e07954602d4aee20bd3be78e0
treebd172b52f0e207c4b62c7b9aa00646fbffd9fdfd
parent642c0447f9c08aff89eefb0ff3f8cf16f7eb8235
drm/i915: handle shared framebuffers when flipping

commit be9a3dbf65a69933b06011f049b1e2fdfa6bc8b9 upstream.

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>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/intel_display.c