diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2019-03-01 17:47:24 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2019-03-04 17:39:12 +0100 |
commit | 2798244be78df3ef3a7841597577506bfbe50156 (patch) | |
tree | 88d066d0db686a0bdca7fea80f3a7c9d283515b4 | |
parent | 72653455e4f652ca6c7c290c7f1e8a889b77f5ce (diff) |
Make drmmode_cm_enabled an inline function
So that it can be used outside of drmmode_display.c as well.
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-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) |