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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index b7d5401..276d234 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -183,9 +183,11 @@ enum drmmode_flip_sync {
* Return TRUE if kernel supports non-legacy color management.
*/
static inline Bool
-drmmode_cm_enabled(drmmode_ptr drmmode)
+drmmode_cm_prop_supported(drmmode_ptr drmmode, enum drmmode_cm_prop cm_prop_index)
{
- return drmmode->cm_prop_ids[CM_GAMMA_LUT_SIZE] != 0;
+ if (drmmode->cm_prop_ids[cm_prop_index] == 0)
+ return FALSE;
+ return TRUE;
}
/* Can the page flip ioctl be used for this CRTC? */