summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index 5063df9..154a1e1 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -182,6 +182,15 @@ enum drmmode_flip_sync {
};
+/**
+ * Return TRUE if kernel supports non-legacy color management.
+ */
+static inline Bool
+drmmode_cm_enabled(drmmode_ptr drmmode)
+{
+ return drmmode->cm_prop_ids[CM_GAMMA_LUT_SIZE] != 0;
+}
+
/* Can the page flip ioctl be used for this CRTC? */
static inline Bool
drmmode_crtc_can_flip(xf86CrtcPtr crtc)