summaryrefslogtreecommitdiff
path: root/xf86drmMode.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-12-02 19:40:58 +0100
committerJakob Bornecrantz <jakob@vmware.com>2009-12-02 19:40:58 +0100
commit3bd834a2178ee1273fd84628e87210a500f8fc84 (patch)
treec123835954f8b2733cc72390934125d6d71badd3 /xf86drmMode.c
parentbe957cc219d0811e2d1ed2a56549a03cb64a0f4b (diff)
parentac5595abc1c28b2c10a1463143e83d17415736f1 (diff)
Merge branch 'modesetting-dirty-libdrm'
Conflicts: include/drm/drm.h
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r--xf86drmMode.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c
index 317aa47f..ca36b71b 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -241,6 +241,18 @@ drmModeFBPtr drmModeGetFB(int fd, uint32_t buf)
return r;
}
+int drmModeDirtyFB(int fd, uint32_t bufferId,
+ drmModeClipPtr clips, uint32_t num_clips)
+{
+ struct drm_mode_fb_dirty_cmd dirty = { 0 };
+
+ dirty.fb_id = bufferId;
+ dirty.clips_ptr = VOID2U64(clips);
+ dirty.num_clips = num_clips;
+
+ return drmIoctl(fd, DRM_IOCTL_MODE_DIRTYFB, &dirty);
+}
+
/*
* Crtc functions