Skip to content
Commit 541f29aa authored by Michel Dänzer's avatar Michel Dänzer Committed by airlied
Browse files

drm: 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().

Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent a6b54f3f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment