summaryrefslogtreecommitdiff
path: root/xf86drmMode.h
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.h
parentbe957cc219d0811e2d1ed2a56549a03cb64a0f4b (diff)
parentac5595abc1c28b2c10a1463143e83d17415736f1 (diff)
Merge branch 'modesetting-dirty-libdrm'
Conflicts: include/drm/drm.h
Diffstat (limited to 'xf86drmMode.h')
-rw-r--r--xf86drmMode.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/xf86drmMode.h b/xf86drmMode.h
index 705369fe..5a4ce637 100644
--- a/xf86drmMode.h
+++ b/xf86drmMode.h
@@ -145,6 +145,17 @@
#endif /* _DRM_MODE_H */
+
+/*
+ * Feature defines
+ *
+ * Just because these are defined doesn't mean that the kernel
+ * can do that feature, its just for new code vs old libdrm.
+ */
+#define DRM_MODE_FEATURE_KMS 1
+#define DRM_MODE_FEATURE_DIRTYFB 1
+
+
typedef struct _drmModeRes {
int count_fbs;
@@ -185,6 +196,8 @@ typedef struct _drmModeFB {
uint32_t handle;
} drmModeFB, *drmModeFBPtr;
+typedef struct drm_clip_rect drmModeClip, *drmModeClipPtr;
+
typedef struct _drmModePropertyBlob {
uint32_t id;
uint32_t length;
@@ -293,6 +306,13 @@ extern int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth,
*/
extern int drmModeRmFB(int fd, uint32_t bufferId);
+/**
+ * Mark a region of a framebuffer as dirty.
+ */
+extern int drmModeDirtyFB(int fd, uint32_t bufferId,
+ drmModeClipPtr clips, uint32_t num_clips);
+
+
/*
* Crtc functions
*/