OSDN Git Service

staging: vboxvideo: Restore page-flip support
authorHans de Goede <hdegoede@redhat.com>
Sat, 29 Sep 2018 12:18:20 +0000 (14:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 12:31:32 +0000 (05:31 -0700)
commit5cf5332d529bf7fd1f66378bb9611387c3e02b05
tree0a5243883596cd994f4b85813855743ed1b58527
parent438340aa20975ffd37a685aa99c610b63f49a7ba
staging: vboxvideo: Restore page-flip support

Restore page-flip support now that the atomic conversion is complete.

Since the mode parameter to vbox_crtc_set_base_and_mode() now never
is NULL call drm_atomic_crtc_needs_modeset() to check if we need to
check for input-mapping changes, to avoid doing unnecesarry work on
a flip. And hookup the drm_atomic_helper_page_flip helper to implement
the page_flip callback.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vboxvideo/vbox_mode.c