drm/fb-helper: implement ioctl FBIO_WAITFORVSYNC
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 28 Feb 2017 15:36:51 +0000 (16:36 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Mar 2017 07:12:15 +0000 (08:12 +0100)
commit0f3bbe074dd179dfbdaabcc601086bc4f6ab885b
tree16e8bfb3bac288170abacfebf2827e1d45c3d0de
parent35f5022fbe9b05ea7ab479f299dc1b63b0ceb8c6
drm/fb-helper: implement ioctl FBIO_WAITFORVSYNC

Implement legacy framebuffer ioctl FBIO_WAITFORVSYNC in the generic
framebuffer emulation driver. Legacy framebuffer users like non kms/drm
based OpenGL(ES)/EGL implementations may require the ioctl to
synchronize drawing or buffer flip for double buffering. It is tested on
the i.MX6.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h