[PATCH 2/3] drm: fb_helper: implement ioctl FBIO_WAITFORVSYNC

2016-07-27 Thread Daniel Vetter
On Wed, Jul 27, 2016 at 11:59:10AM +0200, Stefan Christ wrote: > Hi Daniel, > > I finally found some time to look into this issue again. > > On Fri, Jul 15, 2016 at 09:19:22AM +0200, Daniel Vetter wrote: > > > > > > To roll new vfuncs out consistently I think it'd be great to create a > >

[PATCH 2/3] drm: fb_helper: implement ioctl FBIO_WAITFORVSYNC

2016-07-27 Thread Stefan Christ
Hi Daniel, I finally found some time to look into this issue again. On Fri, Jul 15, 2016 at 09:19:22AM +0200, Daniel Vetter wrote: > > > To roll new vfuncs out consistently I think it'd be great to create a > DRM_FB_HELPER_DEFAULT_OPS #define which sets all the fb_ops. Drivers can > then

[PATCH 2/3] drm: fb_helper: implement ioctl FBIO_WAITFORVSYNC

2016-07-15 Thread Daniel Vetter
On Wed, Jul 13, 2016 at 12:16:05PM +0200, Daniel Vetter wrote: > On Wed, Jul 13, 2016 at 10:11:47AM +0200, Stefan Christ wrote: > > Implement legacy framebuffer ioctl FBIO_WAITFORVSYNC in the generic > > framebuffer emulation driver. Legacy framebuffer users like non kms/drm > > based

[PATCH 2/3] drm: fb_helper: implement ioctl FBIO_WAITFORVSYNC

2016-07-13 Thread Daniel Vetter
On Wed, Jul 13, 2016 at 10:11:47AM +0200, Stefan Christ wrote: > 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

[PATCH 2/3] drm: fb_helper: implement ioctl FBIO_WAITFORVSYNC

2016-07-13 Thread Stefan Christ
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. Code is