]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Rework screen target page flips v2
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 12 Feb 2016 07:54:07 +0000 (08:54 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 14 Mar 2016 13:56:44 +0000 (14:56 +0100)
commit49575b6d61af96cd1ed5e48e379f8b24e306c26a
treef05484cadab9eeddd1663ab2fa942297aec069e1
parent6f5d609d1373cf270168b80dcdedd05edfb89c6f
drm/vmwgfx: Rework screen target page flips v2

Gnome-Shell / Wayland assumes that page-flips can be done on a crtc
regardless of framebuffer size and the crtc position within the
framebuffer.

Therefore rework the screen target code to correctly handle changes in
framebuffer size and content_fb_type. Also make sure that we update
the screen target correctly when the content_fb_type is not
SAME_AS_DISPLAY.

This commit breaks out the framebuffer binding code from crtc_set so it
can be used both from page_flip() and crtc_set() and reworks those
functions a bit to be more robust.

v2: Address review comments by Sinclair Yeh.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c