diff options
| author | Keith Packard <keithp@keithp.com> | 2013-07-22 21:49:59 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2013-08-29 19:25:13 -0400 |
| commit | 9bba0c42ec81748462e58b18095c0eef8707cc9a (patch) | |
| tree | 807d392049250ccbb1c95426eb75a4b060389590 /include/uapi/drm | |
| parent | ed8d19756e80ec63003a93aa4d70406e6ba61522 (diff) | |
drm: Add DRM_MODE_PAGE_FLIP_ASYNC flag definition
This requests that the driver perform the page flip as soon as
possible, not necessarily waiting for vblank.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'include/uapi/drm')
| -rw-r--r-- | include/uapi/drm/drm_mode.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 53db7cea373b..550811712f78 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h | |||
| @@ -412,7 +412,8 @@ struct drm_mode_crtc_lut { | |||
| 412 | }; | 412 | }; |
| 413 | 413 | ||
| 414 | #define DRM_MODE_PAGE_FLIP_EVENT 0x01 | 414 | #define DRM_MODE_PAGE_FLIP_EVENT 0x01 |
| 415 | #define DRM_MODE_PAGE_FLIP_FLAGS DRM_MODE_PAGE_FLIP_EVENT | 415 | #define DRM_MODE_PAGE_FLIP_ASYNC 0x02 |
| 416 | #define DRM_MODE_PAGE_FLIP_FLAGS (DRM_MODE_PAGE_FLIP_EVENT|DRM_MODE_PAGE_FLIP_ASYNC) | ||
| 416 | 417 | ||
| 417 | /* | 418 | /* |
| 418 | * Request a page flip on the specified crtc. | 419 | * Request a page flip on the specified crtc. |
| @@ -426,11 +427,14 @@ struct drm_mode_crtc_lut { | |||
| 426 | * flip is already pending as the ioctl is called, EBUSY will be | 427 | * flip is already pending as the ioctl is called, EBUSY will be |
| 427 | * returned. | 428 | * returned. |
| 428 | * | 429 | * |
| 429 | * The ioctl supports one flag, DRM_MODE_PAGE_FLIP_EVENT, which will | 430 | * Flag DRM_MODE_PAGE_FLIP_EVENT requests that drm sends back a vblank |
| 430 | * request that drm sends back a vblank event (see drm.h: struct | 431 | * event (see drm.h: struct drm_event_vblank) when the page flip is |
| 431 | * drm_event_vblank) when the page flip is done. The user_data field | 432 | * done. The user_data field passed in with this ioctl will be |
| 432 | * passed in with this ioctl will be returned as the user_data field | 433 | * returned as the user_data field in the vblank event struct. |
| 433 | * in the vblank event struct. | 434 | * |
| 435 | * Flag DRM_MODE_PAGE_FLIP_ASYNC requests that the flip happen | ||
| 436 | * 'as soon as possible', meaning that it not delay waiting for vblank. | ||
| 437 | * This may cause tearing on the screen. | ||
| 434 | * | 438 | * |
| 435 | * The reserved field must be zero until we figure out something | 439 | * The reserved field must be zero until we figure out something |
| 436 | * clever to use it for. | 440 | * clever to use it for. |
