diff options
-rw-r--r-- | src/drmmode_display.c | 8 | ||||
-rw-r--r-- | src/drmmode_display.h | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 859c01e..b44a4f4 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -827,14 +827,6 @@ static enum drmmode_cm_prop get_cm_enum_from_str(const char *prop_name) } /** - * Return TRUE if kernel supports non-legacy color management. - */ -static Bool drmmode_cm_enabled(drmmode_ptr drmmode) -{ - return drmmode->cm_prop_ids[CM_GAMMA_LUT_SIZE] != 0; -} - -/** * If legacy LUT is a, and non-legacy LUT is b, then the result of b(a(x)) is * returned in out_lut. out_lut's length is expected to be the same as the * non-legacy LUT b. 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) |