diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2009-11-24 18:00:12 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2009-11-26 16:47:54 +0100 |
commit | 3e48613b482a8ca01ea5719e9cc342a9d4b28db0 (patch) | |
tree | 7a946ffccfb4d635454e4b5e4663f91ad789e31e /xf86drmMode.c | |
parent | 6f66de982ad6ee6967ec61a7399e600bdd9e5887 (diff) |
Bring dirty code from old branch
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r-- | xf86drmMode.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c index 6d85113a..7481ad60 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 |