aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer2016-06-29 04:07:25 -0500
committerMichel Dänzer2016-10-19 04:31:37 -0500
commit7dd28475f129300e67838cb7cba5ce098bc6c0a7 (patch)
tree1188fdbd1a0fd141b02048c6cbb0384dfb31467b /xf86drmMode.c
parent9433b702fc164c3fe9e17d646eeaaa5de17a52de (diff)
downloadexternal-libgbm-7dd28475f129300e67838cb7cba5ce098bc6c0a7.tar.gz
external-libgbm-7dd28475f129300e67838cb7cba5ce098bc6c0a7.tar.xz
external-libgbm-7dd28475f129300e67838cb7cba5ce098bc6c0a7.zip
Add drmModePageFlipTarget
It supports the DRM_MODE_PAGE_FLIP_TARGET_* flags. Acked-by: Daniel Vetter <daniel@ffwll.ch>
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r--xf86drmMode.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c
index 228c6e4b..fb22f683 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -948,6 +948,22 @@ int drmModePageFlip(int fd, uint32_t crtc_id, uint32_t fb_id,
948 return DRM_IOCTL(fd, DRM_IOCTL_MODE_PAGE_FLIP, &flip); 948 return DRM_IOCTL(fd, DRM_IOCTL_MODE_PAGE_FLIP, &flip);
949} 949}
950 950
951int drmModePageFlipTarget(int fd, uint32_t crtc_id, uint32_t fb_id,
952 uint32_t flags, void *user_data,
953 uint32_t target_vblank)
954{
955 struct drm_mode_crtc_page_flip_target flip_target;
956
957 memclear(flip_target);
958 flip_target.fb_id = fb_id;
959 flip_target.crtc_id = crtc_id;
960 flip_target.user_data = VOID2U64(user_data);
961 flip_target.flags = flags;
962 flip_target.sequence = target_vblank;
963
964 return DRM_IOCTL(fd, DRM_IOCTL_MODE_PAGE_FLIP, &flip_target);
965}
966
951int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id, 967int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
952 uint32_t fb_id, uint32_t flags, 968 uint32_t fb_id, uint32_t flags,
953 int32_t crtc_x, int32_t crtc_y, 969 int32_t crtc_x, int32_t crtc_y,