DRM_I915_VBLANK_SWAP ioctl: Take drm_vblank_seq_type_t instead of pipe number.
authorMichel Dänzer <michel@tungstengraphics.com>
Wed, 30 Aug 2006 17:33:28 +0000 (19:33 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 28 Sep 2006 13:41:36 +0000 (15:41 +0200)
commitd5a0f107511e128658e2d5e15bd7e6215c507f29
tree3607cb74514889690e68fc7cf3727015fcce473f
parentdf7551ef7334d728ec0371423661bb403d3e270a
DRM_I915_VBLANK_SWAP ioctl: Take drm_vblank_seq_type_t instead of pipe number.

Handle relative as well as absolute target sequence numbers.

Return error if target sequence has already passed, so userspace can deal with
this situation as it sees fit.

On success, return the sequence number of the vertical blank when the buffer
swap is expected to take place.

Also add DRM_IOCTL_I915_VBLANK_SWAP definition for userspace code that may want
to use ioctl() instead of drmCommandWriteRead().
shared-core/i915_drm.h
shared-core/i915_irq.c