> -----Original Message-----
> From: Jani Nikula <[email protected]>
> Sent: Friday, February 14, 2020 4:56 PM
> To: Kadiyala, Kishore <[email protected]>; intel-
> [email protected]
> Cc: Kadiyala, Kishore <[email protected]>
> Subject: Re: [Intel-gfx] [PATCH] Add support for Color encoding YCBCR_BT2020
> 
> On Fri, 14 Feb 2020, Kishore Kadiyala <[email protected]> wrote:
> > Currently the plane property doesn't have support for YCBCR_BT2020,
> > which enables the corresponding color conversion mode on plane CSC.
> 
> Please prefix your patch subjects properly. "drm/i915: " at a minimum for 
> stuff
> touching i915.

   Sure Jani, I'll include prefix from next time.

> 
> No need to resend for this, but for future reference.
  Ok 

Regards,
Kishore
> 
> BR,
> Jani.
> 
> 
> >
> > Signed-off-by: Kishore Kadiyala <[email protected]>
> > Cc: Uma Shankar <[email protected]>
> > ---
> >  drivers/gpu/drm/i915/display/intel_sprite.c | 9 +++++++--
> >  1 file changed, 7 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_sprite.c
> > b/drivers/gpu/drm/i915/display/intel_sprite.c
> > index 7abeefe8dce5..5169a7260d7c 100644
> > --- a/drivers/gpu/drm/i915/display/intel_sprite.c
> > +++ b/drivers/gpu/drm/i915/display/intel_sprite.c
> > @@ -3011,6 +3011,7 @@ skl_universal_plane_create(struct drm_i915_private
> *dev_priv,
> >     struct intel_plane *plane;
> >     enum drm_plane_type plane_type;
> >     unsigned int supported_rotations;
> > +   unsigned int supported_csc;
> >     unsigned int possible_crtcs;
> >     const u64 *modifiers;
> >     const u32 *formats;
> > @@ -3088,9 +3089,13 @@ skl_universal_plane_create(struct
> drm_i915_private *dev_priv,
> >                                        DRM_MODE_ROTATE_0,
> >                                        supported_rotations);
> >
> > +   supported_csc = BIT(DRM_COLOR_YCBCR_BT601) |
> > +BIT(DRM_COLOR_YCBCR_BT709);
> > +
> > +   if (INTEL_GEN(dev_priv) >= 10 || IS_GEMINILAKE(dev_priv))
> > +           supported_csc |= BIT(DRM_COLOR_YCBCR_BT2020);
> > +
> >     drm_plane_create_color_properties(&plane->base,
> > -                                     BIT(DRM_COLOR_YCBCR_BT601) |
> > -                                     BIT(DRM_COLOR_YCBCR_BT709),
> > +                                     supported_csc,
> >
> BIT(DRM_COLOR_YCBCR_LIMITED_RANGE) |
> >
> BIT(DRM_COLOR_YCBCR_FULL_RANGE),
> >                                       DRM_COLOR_YCBCR_BT709,
> 
> --
> Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to