On Tue, 7 Mar 2023 10:10:55 -0500 Harry Wentland <harry.wentland@xxxxxxx> wrote: > We an use bitfields to track the support ones for HDMI > and DP. This allows us to print colorspaces in a consistent > manner without needing to know whether we're dealing with > DP or HDMI. > > Signed-off-by: Harry Wentland <harry.wentland@xxxxxxx> > Cc: Pekka Paalanen <ppaalanen@xxxxxxxxx> > Cc: Sebastian Wick <sebastian.wick@xxxxxxxxxx> > Cc: Vitaly.Prosyak@xxxxxxx > Cc: Uma Shankar <uma.shankar@xxxxxxxxx> > Cc: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> > Cc: Joshua Ashton <joshua@xxxxxxxxx> > Cc: Jani Nikula <jani.nikula@xxxxxxxxxxxxxxx> > Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx > Cc: amd-gfx@xxxxxxxxxxxxxxxxxxxxx > --- > drivers/gpu/drm/drm_connector.c | 131 +++++++++++++++++++------------- > include/drm/drm_connector.h | 1 + > 2 files changed, 78 insertions(+), 54 deletions(-) > ... > diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h > index 3e2e1bc7aa04..46c064d9ffef 100644 > --- a/include/drm/drm_connector.h > +++ b/include/drm/drm_connector.h > @@ -460,6 +460,7 @@ enum drm_colorspace { > DRM_MODE_COLORIMETRY_RGB_WIDE_FIXED = 13, > DRM_MODE_COLORIMETRY_RGB_WIDE_FLOAT = 14, > DRM_MODE_COLORIMETRY_BT601_YCC = 15, > + DRM_MODE_COLORIMETRY_MAX Maybe a comment to say that MAX is not a valid value? Given that things like iccMAX exist (even though it makes no sense as a colorspace), MAX could perhaps be confused with something. Or call it DRM_MODE_COLORIMETRY__COUNT? or __END? Thanks, pq
Attachment:
pgpwnIIkgDzq3.pgp
Description: OpenPGP digital signature