diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2009-11-17 12:43:55 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-11-18 10:05:47 +1000 |
commit | d91d8a3f88059d93e34ac70d059153ec69a9ffc7 (patch) | |
tree | 13810c8dbc35522d930b5fc17db35570f3d1e821 /include/drm/drm.h | |
parent | dad07ca71719598bc990dbdbeda763d15a10e98b (diff) | |
download | blackbird-op-linux-d91d8a3f88059d93e34ac70d059153ec69a9ffc7.tar.gz blackbird-op-linux-d91d8a3f88059d93e34ac70d059153ec69a9ffc7.zip |
drm/kms: add page flipping ioctl
This adds a page flipping ioctl to the KMS API. The ioctl takes an fb ID
and a ctrc ID and flips the crtc to the given fb at the next vblank.
The ioctl returns immediately but the flip doesn't happen until after
any rendering that's currently queued up against the new framebuffer
is done. After submitting a page flip, any execbuffer involving the
old front buffer will block until the flip is completed.
Optionally, a vblank event can be generated when the swap eventually
happens.
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm.h')
-rw-r--r-- | include/drm/drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h index fa6d9155873d..3919a4f792ae 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -687,6 +687,7 @@ struct drm_gem_open { #define DRM_IOCTL_MODE_GETFB DRM_IOWR(0xAD, struct drm_mode_fb_cmd) #define DRM_IOCTL_MODE_ADDFB DRM_IOWR(0xAE, struct drm_mode_fb_cmd) #define DRM_IOCTL_MODE_RMFB DRM_IOWR(0xAF, unsigned int) +#define DRM_IOCTL_MODE_PAGE_FLIP DRM_IOWR(0xB0, struct drm_mode_crtc_page_flip) /** * Device specific ioctls should only be in their respective headers |