From 3e48613b482a8ca01ea5719e9cc342a9d4b28db0 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 24 Nov 2009 18:00:12 +0100 Subject: Bring dirty code from old branch --- xf86drmMode.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'xf86drmMode.c') 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 -- cgit v1.2.3