aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Bornecrantz2009-11-24 11:00:12 -0600
committerJakob Bornecrantz2009-11-26 09:47:54 -0600
commit3e48613b482a8ca01ea5719e9cc342a9d4b28db0 (patch)
tree7a946ffccfb4d635454e4b5e4663f91ad789e31e /xf86drmMode.c
parent6f66de982ad6ee6967ec61a7399e600bdd9e5887 (diff)
downloadexternal-libdrm-3e48613b482a8ca01ea5719e9cc342a9d4b28db0.tar.gz
external-libdrm-3e48613b482a8ca01ea5719e9cc342a9d4b28db0.tar.xz
external-libdrm-3e48613b482a8ca01ea5719e9cc342a9d4b28db0.zip
Bring dirty code from old branch
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 6d85113a..7481ad60 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -241,6 +241,18 @@ drmModeFBPtr drmModeGetFB(int fd, uint32_t buf)
241 return r; 241 return r;
242} 242}
243 243
244int drmModeDirtyFB(int fd, uint32_t bufferId,
245 drmModeClipPtr clips, uint32_t num_clips)
246{
247 struct drm_mode_fb_dirty_cmd dirty = { 0 };
248
249 dirty.fb_id = bufferId;
250 dirty.clips_ptr = VOID2U64(clips);
251 dirty.num_clips = num_clips;
252
253 return drmIoctl(fd, DRM_IOCTL_MODE_DIRTYFB, &dirty);
254}
255
244 256
245/* 257/*
246 * Crtc functions 258 * Crtc functions